basic cost analysis