Can anyone explain eating back calories to me in a simple wa

For some reason I have never understood the math used to figure out how many calories you are supposed to eat back (that you worked off with exercise)