compute total cost as treatment type cost times units
test
test