Reconcile processor fees rounded per capture versus in aggregate Original fictional practice · CC BY 4.0 · 2026-11-11 TASK Positive original captures each incur2.5% rounded to nearest cent half-up plus30 cents. Reversals do not refund fees under this exercise policy. Per customer return customer,captures,per_capture_fee,aggregate_fee,rounding_difference. Aggregate fee rounds2.5% of summed captures once plus30 per capture. Sort customer. OUTPUT customer, captures, per_capture_fee, aggregate_fee, rounding_difference RULES Positive original captures each incur2.5% rounded to nearest cent half-up plus30 cents. Reversals do not refund fees under this exercise policy. Per customer return customer,captures,per_capture_fee,aggregate_fee,rounding_difference. Aggregate fee rounds2.5% of summed captures once plus30 per capture. Sort customer. Return exactly the declared columns and order. Money uses integer cents; time and date units follow the task and field dictionary. NULL is unknown and differs from numeric zero. These are original fictional records and exercise policies. Scenario data may be shared with related tasks, whose decisions and output contracts differ. FIELD DICTIONARY invoices: id INTEGER — Stable source record identifier; not a row position. customer TEXT — Literal business key or category label. Match exactly and retain NULL where present. due INTEGER — Invoice due day used for oldest-first order. cents INTEGER — Signed integer currency cents. cash: id INTEGER — Stable source record identifier; not a row position. customer TEXT — Literal business key or category label. Match exactly and retain NULL where present. day INTEGER — Integer day index, or ISO YYYY-MM-DD date when stored as text; the task declares cutoff semantics. cents INTEGER — Signed integer currency cents. original_id INTEGER — Referenced original cash capture identifier, NULL for an original record. milestones: contract TEXT — Literal business key or category label. Match exactly and retain NULL where present. name TEXT — Literal business key or category label. Match exactly and retain NULL where present. required INTEGER — Boolean requirement flag,1 required and0 optional. approved INTEGER — Boolean approval flag. cents INTEGER — Signed integer currency cents. METHOD Positive original captures each incur2.5% rounded to nearest cent half-up plus30 cents. Reversals do not refund fees under this exercise policy. Per customer return customer,captures,per_capture_fee,aggregate_fee,rounding_difference. Aggregate fee rounds2.5% of summed captures once plus30 per capture. Sort customer. For the first output record, customer = A; captures = 2; per_capture_fee = 86; aggregate_fee = 85; rounding_difference = 1. Inspect the source grain, keys and ties. Compare each result column with the full worked SQL and expected CSV. COMMON WRONG TURN Rounding a combined rate once does not reproduce fees charged and rounded separately for each capture. RESULT CHECK For the first output record, customer = A; captures = 2; per_capture_fee = 86; aggregate_fee = 85; rounding_difference = 1. Use setup.sql in a fresh SQLite database and run your own SELECT or WITH. reference.sql and expected.csv contain the full worked answer. All CSVs have UTF-8 headers; empty output fields represent NULL. The browser executes SQLite, not Excel formulas. No spreadsheet function engine is claimed.