Simple python functions for doing cumulative trapezoidal method but with date-strings as the x-increment