Improve code up to variable b

validate user inputs
use different arithmetic operator
change hard coded year to variable for user input