Calculate the year of the date based on the provided reference date. Gets a two-digit year and returns a full year.