Added Loop to Validate and Correcting calculation