Further functional decomposition of cost calculations