fix seconds formula