manual cost calculation added