New Estimation of the Remainder in the Trapezoidal Formula with Applications