Is it possible to use trend integration with fixed date sample_duration?

I want to to calculate a simple projection of my energy usage for the month. I found the trend integration and it almost looks like what I want. However there’s an issue; since energy usage is billed on a monthly basis, I want my trends to reset at the start of every month (e.g. on the 2nd of January, the only data points that should make up my trend should be those starting on January 1st). Is there a way to do this with the trend (or another) integration?