Automating Legal Billing and Time Tracking for Accurate Revenue Management