A guide to implementing your own 2050 calculator