variable string to integer

I want to take a variable in one web page in the string mode and transform it to usable variable and make a calculation is mind add taxes to this variable and verified the results please

Closed as duplicate of: