How to work out how many laps are needed for an event