A cost subtraction can run successfully while combining incompatible units. Before interpreting the result, write down what each field means and convert comparable quantities to a common representation.
The Reserve Bank of Australia glossary defines a basis point as one hundredth of a percentage point. For the arithmetic below, one basis point corresponds to a decimal return of 0.0001. This is an original synthetic exercise, not a strategy result, realistic cost estimate or investment recommendation.
A small packet with a large error
The fictional packet defines gross return as 25 basis points and total cost as 0.06 percent. Both refer to the same interval and notional base. Cost is a positive amount to subtract, with all cost components already included for this exercise.
| Quantity | Basis points | Percent | Decimal return |
|---|---|---|---|
| Gross return | 25 | 0.25% | 0.0025 |
| Total cost | 6 | 0.06% | 0.0006 |
| Net return | 19 | 0.19% | 0.0019 |
The net calculation is 0.0025 - 0.0006 = 0.0019. On an illustrative fixed base of 100,000 units of currency, that is gross 250 minus cost 60, leaving 190. This currency cross-check works because the example explicitly uses the same base; it is not a general portfolio accounting model.
If a parser reads the numeric value 0.06 as a decimal return rather than a percent value, the calculation becomes 0.0025 - 0.06 = -0.0575. That means -5.75 percent, or -575 basis points. The code's arithmetic may be correct while the input interpretation is wrong.
Write the input contract
Before calculation, record the field name, raw value, declared unit, base, interval and sign convention. Preserve the raw value alongside the normalized value so another reader can trace the transformation.
For this packet, cost_percent = 0.06 means divide by 100. cost_bps = 6 means divide by 10,000. A field already documented as cost_decimal = 0.0006 needs neither conversion. The magnitude alone does not establish which convention the source intended.
Now change the contract: the cost field is a signed contribution of -0.0006. Net return is gross plus that signed contribution. Subtracting the negative number would add cost back and produce 31 basis points, an unsupported improvement.
Three questions the arithmetic cannot answer
Does the cost refer to traded notional while gross return refers to portfolio capital? Is one number per transaction while the other covers a month? Does “total” include both sides of the transaction? If the packet does not answer, label comparability unresolved instead of subtracting numbers because they fit in the same column.
Finish with the raw fields, unit contract, normalized calculation, currency cross-check and one missing-information case. Keep it clearly synthetic in a research portfolio. This is distinct from floating-point precision: more precise arithmetic cannot repair a wrong unit definition.
Compare unit-check preparation resources when deciding whether this free diagnosis or a broader connected project addresses your next gap.
For a separate worked task, use annualize a short return without presenting it as a forecast. If you need to choose a resource afterward, compare annualization preparation: unit check or quantitative interview practice?.