How to calculate a user input number by a fixed amount?