calling for global variable in function

Trying to call global variable which is a raw input from user to be
calculated in function