End of the previous measurement period
The simplest way to find the end of the previous measurement period is to find the beginning of the current period and subtract 1 day. See the various Beginning of current … examples to calculate the beginning of the current period.