refactors splitDuration to use arrows.