add total_usage calculation