{"id":"ops-agency-invoice-vs-timesheets-table","audience":"finance","category":"operations-work","track":"operations","technique":"verification","level":"intermediate","title":"Compare staffing agency invoiced hours with approved timesheets","free":false,"task":"Write a prompt for a markdown table with columns Worker, Billed, Signed and Over, one row per worker, where Over is billed hours minus signed hours. After the table add one line: \"Variance: N hours x $24 = $X - AP decides.\" Use the approved timesheets as the record. Under 75 words.","materialLabel":"Your material (attached to your prompt automatically)","material":"STAFFING AGENCY INVOICE CHECK - Staffright, week ending Mar 7\nBill rate: $24.00 per hour.\n\nAGENCY INVOICE (hours billed)\nAna Ruiz: 40\nBen Okafor: 46\nCy Dunn: 38\nDee Hale: 45\n\nAPPROVED TIMESHEETS (signed by our supervisor)\nAna Ruiz: 40\nBen Okafor: 44\nCy Dunn: 38\nDee Hale: 40\n\nAgency note on the invoice: \"Dee Hale worked a Saturday shift (5 hours).\" Our supervisor's note: \"No Saturday shift was scheduled; I did not sign any Saturday hours.\"\nBen Okafor's extra 2 hours: no explanation given.\n\nAP decides whether to dispute or pay any hours. The supervisor will follow up with the agency on the differences.","rules":[{"type":"maxWords","max":75}],"promptHints":[{"label":"Names the table columns","patterns":["worker.*billed.*signed.*over","table"]},{"label":"Defines Over","patterns":["billed (hours )?minus","minus signed"]},{"label":"Names the record","patterns":["approved timesheets","the record"]},{"label":"Gives the last line format","patterns":["variance:","ap decides"]},{"label":"Sets a length limit","patterns":["\\d+\\s*words","word (limit|count)","under \\d+"]}],"mistakes":[{"title":"Trusting the agency note","why":"The AI accepts Dee's Saturday shift and shows zero variance.","fix":"Say: \"The approved timesheets are the record.\"","checks":["r1"]},{"title":"Wrong Over direction","why":"The AI subtracts the other way and shows negative numbers.","fix":"Say: \"Over = billed hours minus signed hours.\"","checks":["r1"]},{"title":"Last line format","why":"The AI writes a paragraph or decides to dispute.","fix":"Say: \"Last line: Variance: N hours x $24 = $X - AP decides.\"","checks":["r0","r2"]},{"title":"Trusting the AI to count words","why":"AI is bad at counting and usually runs long, so a vague \"keep it short\" lands over the limit.","fix":"Cap each part instead of the total, for example \"each line under 15 words\".","checks":["maxWords"]}],"hint":"Name the columns and the Over direction, say which record wins and give the last line format.","mission":"Find overbilled hours on the staffing agency invoice.","musts":["Signed timesheets are record","Over = billed minus signed","Variance times $24"],"rubricLabels":["The output is a markdown table with the columns Worker, Billed, Signed and Over and one row for each of the four workers","The Over values are 0 for Ana Ruiz, 2 for Ben Okafor, 0 for Cy Dunn and 5 for Dee Hale, using the approved timesheets","The last line reads Variance: 7 hours x $24 = $168 - AP decides (the amount can use \"$168\"), without accepting the agency's Saturday claim"]}