Monitoring and analyzing costs