adjust offset calculation to only adjust month and year offsets
remove unneeded code