Total Cost Analysis Formula