factors affecting costs