factors affecting cost