fix day value in seconds, add missing magic constant