https://www.th3accountant.com/2021/03/costTheory2.html