Defined function for correction equation