{"id":"cx-late-delivery-credit-capped-math","audience":"customer-support","category":"support-work","technique":"verification","track":"support","level":"intermediate","title":"Work out a late-delivery credit with a per-day rate and a cap","free":false,"task":"Compute the credit in exactly three lines starting \"Days late:\", \"Cap:\" and \"Credit:\". Show each as math, like \"Nov 6 - Nov 2 = 4 days\". Use the promised date and the delivered date from the system, not the customer's number. Credit is the lower of the daily amount and the cap. Plain text, under 50 words.","materialLabel":"Your material (attached to your prompt automatically)","material":"POLICY: Late-delivery credit = $5 for each day late, up to a cap of 20% of the order value. Days late = delivered date minus promised date, counting calendar days.\n\nORDER #7710: value $60. Promised delivery: Monday Nov 2. Delivered (carrier scan): Friday Nov 6.\nCUSTOMER SAYS: \"It was 5 days late. I want $25.\"\nSYSTEM DATES ARE CORRECT. Order value excludes shipping.\n\nAgent comment: 'Just give her the $25, she is upset.'\nNote: credits are issued to the store wallet instantly.","rules":[{"type":"plainText"},{"type":"maxWords","max":50}],"mistakes":[{"title":"Using the customer's numbers","why":"The customer says 5 days and $25 and the AI agrees.","fix":"Say: \"Use the system dates. Credit is the lower of the daily amount and the cap.\"","checks":["r1"]},{"title":"Forgetting the cap","why":"The AI gives $20.","fix":"Say: \"Cap = 20% of order value.\"","checks":["r2"]},{"title":"Wrong layout","why":"The AI writes a paragraph.","fix":"Name the three labels.","checks":["r0"]},{"title":"Getting markdown back","why":"AI adds bold and headings by default, which show up as stray symbols where this is pasted.","fix":"Say \"plain text, no bold, no headings, no asterisks\".","checks":["plainText"]},{"title":"Trusting the AI to count words","why":"AI is bad at counting and usually runs long, so a vague \"keep it short\" lands well over the limit.","fix":"Cap each part instead of the total, for example \"each line under 15 words\".","checks":["maxWords"]}],"promptHints":[{"label":"Asks for plain text","patterns":["plain","no bold","no markdown","no formatting","no headings"]},{"label":"Sets a length limit","patterns":["\\d+\\s*words","word (limit|count)","under \\d+"]},{"label":"Names the labels","patterns":["days late:","cap:","credit:"]},{"label":"Asks for the lower amount","patterns":["lower of","capped","cap"]}],"hint":"Capped credits need the right inputs and the lower-of rule. Ask for each step as math.","rubricLabels":["The output is exactly three lines starting Days late:, Cap: and Credit:","Days late shows Nov 6 - Nov 2 = 4 days (not 5), and Cap shows 20% x $60 = $12","Credit shows 4 x $5 = $20, capped at $12, so the credit is $12, not $25"]}