Template tag needs to use remainder when calculting min and secs