Extracted cost to break calculator into its own directive