Modified method for estimating partial months

Also added comments