Inputs and modes
Current Amount is the number of pounds you want to test, such as a savings balance, annual salary, pension income, or rent budget. Annual Inflation Rate is your constant percentage assumption, not a rate downloaded from the Office for National Statistics. In Calculate by Years mode, Number of Years sets the whole-number duration. The script discards any decimal part of that duration, so 5.9 is treated as 5 years. In Calculate by Period mode, Start Year and End Year set the duration by subtraction: an entry of 2026 to 2031 means 5 years, not 6 inclusive calendar labels. If the end year is earlier than the start year, the duration becomes zero. The form accepts complete numbers that use valid locale grouping and decimal separators. A negative rate is rejected, so it is not a deflation calculator. The amount field is formatted for British display and results use the pound sign. Switching mode or changing an input recalculates the figures immediately; the button runs the same calculation.