Proof of concept for bounded forecast_period.
Add tests, fix bugs in proof-of-concept, and refactor.