Corrected Code

Casted prompts as number and fixed math error