Description
Multiply reusable by unitCost, count rejected units, and subtract handling cost for netCredit.
Pharmacy credit arithmetic applies a supplied price to a chosen returned or accepted quantity. Financial eligibility and a product's suitability for reuse are separate determinations.
Multiply reusable by unitCost, count rejected units, and subtract handling cost for netCredit.
When to use this tool
Use Ward Returned Unused Unit Credit when you need one documented pharmacy-return cost component.
How to use the tool and how it works
- Enter returned, reusable, unitCost, handlingCost. Use the units and conventions below.
- Run the tool. Correct any format, range, or cross-field input error before interpreting the output.
- Read credit, rejected, netCredit. Use the output convention below.
Require reusable between zero and returned, with nonnegative unitCost and handlingCost. Multiply reusable by unitCost, count rejected units, and subtract handling cost for netCredit.1
| Input field | Meaning and units | Accepted input |
|---|---|---|
| returned | Returned | Required. Safe integer; minimum 0. |
| reusable | Reusable | Required. Safe integer; minimum 0. |
| unitCost | Unit Cost | Required. Finite number; minimum 0. |
| handlingCost | Handling Cost | Required. Finite number; minimum 0. |
| Output field | Interpretation | Returned shape |
|---|---|---|
| credit | Credit | Required. Finite number. |
| rejected | Rejected | Required. Safe integer. |
| netCredit | Net Credit | Required. Finite number. |
{
"input": {
"returned": 20,
"reusable": 15,
"unitCost": 2,
"handlingCost": 5
},
"output": {
"credit": 30,
"rejected": 5,
"netCredit": 25
}
} Limitations and assumptions
- Net credit may be negative; reusable is a supplied count and does not establish sterility, legal return eligibility, or clinical suitability for reuse.
- Inputs must satisfy both the field types and the cross-field conditions above. Invalid input causes an error; a successful false flag or documented placeholder is a different result.
- Numeric calculations use binary floating point unless exact decimal-integer arithmetic is explicitly stated. No hidden measurement tolerance or decimal rounding is added; nonfinite or out-of-contract results are rejected. Numeric signed-zero results are exported as zero.
Alternative or Complementary methods
Verify return policy, product condition, authorized handling, and accounting treatment with the responsible pharmacy team.
References
Similar or alternative tools
- Hospital Return Credit Base Flag
Select accepted units only when creditOnlyAccepted, otherwise all returns, and multiply for credit.
- Balance Due Deposit Cancellation Credit
Combine nonnegative originalCharge and cancellationFee, subtract deposit and otherCredit, and split the signed remainder into nonnegative balanceDue or refund.