Calculating previous year at startup doesn't seem to be the right thing todo, as then you're relying on the server getting restarted pretty regularly.