Module:Monthly Challenge utils

--[=[ Module description ]=]

local p = {} --p stands for package

--[=[ Step forward 'n' months (back if n < 1) ]=] function p.getNextMonth(year, month, step) local n_months = (year * 12) + (month - 1) + step local p_year = math.floor(n_months / 12) local p_month = n_months - (p_year * 12) + 1 return p_year, p_month end

return p