Work EngineRoots Solutions
Administration

Connecting…

Operational Master Data RepositoriesOperational Master Data Repositories

Rules & Calculation Formulas

Abstract rules
7
Implemented rules
7
Executed rules
9

Define once, reference anywhere. Abstract rules are the general rules of arithmetic and selection; implemented rules build business formulas on them; executed rules keep every evaluation, step by step, with where each value was read from.

  1. 1Abstract rulesThe rules themselves: each a formula over named parameters, with its rounding, output and the policy it implements. Approved as rules.
  2. 2Implemented rulesWhere each rule is used, and with what: every parameter mapped to its source (which price, in which table and record) and the workflow, step or service that uses it.
  3. 3Executed rulesThe log of every run of an implemented rule: each value, the cell it was read from, each step.

Abstract rules

The rules themselves: each a formula over named parameters, with its rounding, output and the policy it implements. Approved as rules.

AR-1Service chargeApprovedv1

The charge for a service before tax: the quantity asked for times the fee of one unit of the service.

Service charge = Quantity × unit fee

Computed by FN-3 · Product · Policy: Retail fee schedule 2026

Implemented rules

AR-2Value-added taxApprovedv1

The VAT due on a taxable amount: the standard VAT rate of the country of supply, in percent, of the amount.

VAT amount = Taxable amount × VAT rate (%) ÷ 100

Computed by FN-5 · Percentage of · Policy: Egypt VAT Law 67 of 2016, art. 2; KSA VAT Implementing Regulations, art. 2

Implemented rules

AR-3Amount including VATApprovedv1

What the customer is invoiced: the net amount plus the VAT on it.

Total charge = Net amount + VAT

Computed by FN-1 · Sum · Policy: Retail pricing policy RP-04

Implemented rules

AR-4Fee waiver limitApprovedv1

The largest part of a charge an agent may waive without approval: a share, in percent, of the charge.

Waiver allowed = Charge × Largest waiver (%) ÷ 100

Computed by FN-5 · Percentage of · Policy: Fee waiver rule (FEE-WAIVER-RATE)

Implemented rules

AR-5Refund approval routingApprovedv1

Who approves a refund: up to the automatic approval limit it is approved automatically, below the supervision limit by Finance, and from the supervision limit on by the risk committee.

Approval route = IF(Refund requested ≤ Automatic approval limit, Route up to the automatic limit, IF(Refund requested < Supervision limit, Route between the limits, Route from the supervision limit))

Computed by FN-11 · Threshold band · Policy: Refund policy RF-02, approval matrix

Implemented rules

AR-6Average refund requestedApprovedv1

The typical refund: the mean amount of the latest refund requests.

Average refund requested = SUM(Refund amounts) ÷ COUNT(Refund amounts)

Computed by FN-6 · Average (arithmetic mean) · Policy: Refund monitoring KPI K-RF-3

Implemented rules

AR-7Refund deviation from the averageDraftv1

How many times the average refund a request is; far above 1 flags it for a second look.

Refund to average ratio = Refund requested ÷ Average refund

Computed by FN-4 · Ratio · Policy: Proposal from the Q3 refund review

Implemented rules

Latest executed rules

All executed rules (9)
RuleResultContextByAt
RX-9IR-6 v1 Average refund · latest 25 refund casesMonthly refund monitoring975.36 EGP2026-10-15 · EGKarim Mansour15 Oct 2026, 15:49Succeeded
RX-8IR-5 v1 Refund approval route · refund request caseDry run for January 2027: the FY2026 thresholds end on 31 December and FY2027 is not released yetFailed2027-01-15 · EG · REQ-1Nour Adel15 Oct 2026, 15:49Failed
RX-7IR-5 v1 Refund approval route · refund request caseRefund processing (WF-3) · Choose approval route"Approve automatically" 2026-10-15 · EG · REQ-5Workflow15 Oct 2026, 15:49Succeeded
RX-6IR-5 v1 Refund approval route · refund request caseRefund processing (WF-3) · Choose approval route"Finance approval" 2026-10-15 · EG · REQ-1Workflow15 Oct 2026, 15:49Succeeded
RX-5IR-2 v1 VAT · standard rate of the country of supplyQuote for the Dubai office: no VAT code for AE yetFailed2026-10-15 · AE · service=SRV-CARD-REPLACE · quantity=1Lina Saleh15 Oct 2026, 15:49Failed
RX-4IR-4 v1 Fee waiver limit · FY2026 approval thresholdsWaiver an agent may grant on three card replacements128.25 EGP2026-10-15 · EG · service=SRV-CARD-REPLACE · quantity=3Nour Adel15 Oct 2026, 15:49Succeeded
RX-3IR-3 v1 Total charge · retail quoteEarly loan settlement quote, Riyadh office (VAT 15%)575.00 EGP2026-10-15 · SA · service=SRV-LOAN-SETTLE · quantity=1Lina Saleh15 Oct 2026, 15:49Succeeded
RX-2IR-3 v1 Total charge · retail quoteThree account statements, Alexandria branch85.50 EGP2026-10-15 · EG · service=SRV-STATEMENT · quantity=3Nour Adel15 Oct 2026, 15:49Succeeded
Calculation functions (13)

The general functions every rule is computed by (FN-1…FN-13). They never change.

FN-1SumTermsAdds every term. A list term adds each of its values.
FN-2DifferenceAmount − LessThe first amount less the second.
FN-3ProductFactorsMultiplies every factor.
FN-4RatioNumerator ÷ DenominatorThe first value divided by the second. A zero denominator stops the calculation; it never becomes zero or infinity.
FN-5Percentage ofBase amount × Rate (%) ÷ 100A rate, in percent, of a base amount.
FN-6Average (arithmetic mean)SUM(Values) ÷ COUNT(Values)The sum of the values divided by how many there are. Empty values are left out of both; no values stops the calculation.
FN-7CountCOUNT(Values)How many values there are, leaving empty ones out.
FN-8MinimumMIN(Values)The smallest of the values.
FN-9MaximumMAX(Values)The largest of the values.
FN-10Cap at a limitMIN(Value, Limit)The value, but never more than the limit.
FN-11Threshold bandIF(Value ≤ Up to, Outcome up to the first threshold, IF(Value < Below, Outcome between, Outcome from the second threshold))Places a value in one of three bands by two thresholds: up to the first (inclusive), below the second, or from the second on.
FN-12Effective-dated selectionSELECT the one record WHERE criteria match AND valid from ≤ date ≤ valid toExactly one record must match the criteria and be in effect on the day. None, or more than one, stops every calculation that depends on it: there is no fallback value.
FN-13Round half upROUND(value, decimals)Rounds to a number of decimals, halves away from zero. Monetary results round to 2 decimals once, at the end of the step that makes them.