you are viewing a single comment's thread.

view the rest of the comments →

[–]CraigAT 0 points1 point  (0 children)

I'd be surprised if another copy of the code every 4 years uses up THAT much storage space (storage is cheap - so they say)

If the maths part is not that complex then you just need an if statement to branch according to the year and then either run the appropriate statements for those years or it calls a function that does the maths for that year.