Added functionality for month length and leap