Currently the built-in derivative helper assumes you wish to take the derivative of your data with respect to time. However, I have other domains I wish to do calculus on (eg, solar elevation) and it would be nice to be able to handle this calculation entirely from within Home Assistant.