Use when the user asks you to calculate, compute, evaluate, or solve a math expression or equation. Triggers on arithmetic, order of operations (PEMDAS), fractions, percentages, exponents, and multi-step math problems.
84
78%
Does it follow best practices?
Impact
94%
1.00xAverage score across 5 eval scenarios
Passed
No known issues
A small retail shop owner wants to understand the final prices customers will pay on several items after applying promotional discounts and local sales tax. She has a list of original prices, discount percentages, and a sales tax rate, and needs to see the step-by-step math so she can verify the numbers herself and explain them to her accountant.
She's not confident in her own mental arithmetic, so she wants you to walk through every calculation fully so she can follow the logic.
Work through each of the following calculations and explain the math:
Write the solutions to price_calculations.md. For each item, show the full calculation and clearly state the final result.