A Verlinde Formula for Families of Curves