make formatDurationInSecondsToHM private
Refactor running / invalid duration calculation (lib)