A General Formula for the Remainder