make sure all time spans are positive