Given a goal and all the glorious data we get back from the API, which includes slope information for all the pieces of the graph, current amount, UTC deadline, and so on - what’s some pseudocode logic to calculate the amount required at an arbitrary time t?

Has someone already worked on a solution to this?

Is there an implementation of this algorithm I can steal from someone’s repo?

The reason I ask is because I frankly do not understand *exactly* how the road works. If no one has already done, tested and verified an implementation of this, I’ll have to study exactly how the road works, and that sounds like a heck of a headache, but if I need to do that, I’ll do it…