added function to calculate spawn year by splitting by month