Fix leap year bug and clean code

2 jobs for dev-fix-leap_year
in 4 minutes and 36 seconds, using 0 compute credits, and was queued for 1 second