Adding missing Math.floor causing day "undefined"

Day shows up as undefined for values > 10