Performing cubic spline interpolation

Oh wow, I’m just trying to find a solution for my problem here:

So can it be used to calculate the approximate time left on a battery?