With the above suggestions this changes to: `activities.total_distance_between(challenge.period)` which I think reads a lot nicer.