Very cool! Just wanted to mention this macro I added to the dbt-date package a few weeks ago that does some of that as well.