Problem This batch file does not work correctly the first time it is run but works fine every time after that. The part that is not working is the calculation o