Higher-order error bound for the difference of two functions