Added some monotonic functions "div", "nummonths" and "numdays".