Calculating a value between 1 to 4 as a QUARTER of a year for a given date 2009-05-18:

Calculated output
2