This wasn't as hard as I thought it would be.
A tiny project arrived that at first glance looked like an incomprehensible math-fest. It turns out the solution was more practicle than I’d feared.