correct month general calculation