AAmit’s LibraryLEARN · PRACTISE · REFLECT
Amit’s Library

Finance practice: calculate, interpret, change an assumption

Prerequisites: basic arithmetic and ratios; Python 3.10+ for optional local calculations. All amounts and events are invented. Units are teaching currency units, not current prices. No accounts, payments, AI models, cloud services or external tools are invoked by this worksheet.

Python worksheet · Editable inputs · Expected outputs

  1. Attempt each calculation and interpretation by hand.
  2. Run python3 finance_v93_fixtures.py --case all.
  3. Change a valid input in the downloaded JSON, then run python3 finance_v93_fixtures.py --input-file finance_v93_inputs.json --case all.
  4. Explain changed assumptions and missing evidence. Undefined division produces null, not a measured zero.

Invoice approval and the economics of early payment

Draw invoice states, owners and a deadline-aware cash decision; change the financing assumption.

python3 finance_v93_fixtures.py --case finance-value--workflow

{
  "face": 50000,
  "discountPercent": 2,
  "financing": 300,
  "processing": 200
}
What is the net benefit?

1,000 minus 300 minus 200 = 500 currency units.

Why is an on-time approval insufficient by itself?

Invoice validity, cash availability, authorisation and the actual discount conditions still require evidence.

What happens when financing cost becomes 900?

Net benefit becomes minus 100; total outflow becomes 50,100 under the same assumptions.

Compare the calculated baseline after your attempt
{
  "discount": "1000",
  "supplierPayment": "49000",
  "netBenefit": "500",
  "totalOutflow": "49500"
}

Existing lesson: Break-Even Spreadsheet · Read and save responses

Boundary: supplemental synthetic calculation, not another complete lab or proof of production-system behaviour.

Product mix, contribution and a misleading pooled margin

Build a contribution table with component amounts and revenue weights; explain the changed mix.

python3 finance_v93_fixtures.py --case finance-value--analytics

{
  "aUnits": 100,
  "aPrice": 100,
  "aVariable": 60,
  "bUnits": 50,
  "bPrice": 200,
  "bVariable": 160
}
Calculate the pooled margin.

6,000 / 20,000 × 100 = 30%.

Is contribution the same as profit?

No. Fixed costs and other excluded items still need to be considered.

What changes if B volume doubles?

Revenue is 30,000, contribution 8,000 and margin about 26.67%; component margins remain unchanged.

Compare the calculated baseline after your attempt
{
  "aContribution": "4000",
  "bContribution": "2000",
  "revenue": "20000",
  "contribution": "6000",
  "marginPercent": "30.0"
}

Existing lesson: Python Descriptive Statistics · Read and save responses

Boundary: supplemental synthetic calculation, not another complete lab or proof of production-system behaviour.

AI assistance, realised time and incremental cost

Create a quality-aware pilot ledger separating time, cash, capacity and error consequences.

python3 finance_v93_fixtures.py --case finance-value--ai

{
  "tasks": 80,
  "savedMinutes": 5,
  "reviewMinutes": 2,
  "hourValue": 600,
  "toolCost": 1000
}
What is net time released?

80 × (5 − 2) = 240 minutes, or four hours.

Is the 1,400-unit result measured ROI?

No. It is an assumed incremental-value scenario, not evidence of cash savings or investment return.

What if review takes six minutes?

Net time is minus 80 minutes and net scenario value is minus 1,800.

Compare the calculated baseline after your attempt
{
  "netMinutes": "240",
  "netHours": "4",
  "scenarioValue": "2400",
  "netValue": "1400"
}

Existing lesson: Prompt Evaluation · Read and save responses

Boundary: supplemental synthetic calculation, not another complete lab or proof of production-system behaviour.

Meter readings, missing evidence and financial extrapolation

Produce an observed/imputed cost ledger and a missing-reading investigation plan.

python3 finance_v93_fixtures.py --case finance-value--devices

{
  "expectedIntervals": 100,
  "observedIntervals": 90,
  "observedKwh": 180,
  "tariff": 3
}
Which cost is observed under the stated tariff?

180 × 3 = 540; the 600 total is conditional extrapolation.

What makes the extrapolation questionable?

Missing intervals may have systematically different usage, and the tariff assumption may omit charges.

What if there are no observed intervals?

The estimated usage and cost are undefined; report missing evidence, not zero consumption.

Compare the calculated baseline after your attempt
{
  "coveragePercent": "90.0",
  "observedCost": "540",
  "estimatedKwh": "200",
  "estimatedCost": "600"
}

Existing lesson: Data Quality Checks · Read and save responses

Boundary: supplemental synthetic calculation, not another complete lab or proof of production-system behaviour.

Payment retries and duplicate financial events

Specify payment-intent identity, retry responses and a human-owned unresolved-state ledger.

python3 finance_v93_fixtures.py --case finance-value--integration

{
  "uniqueEvents": 6,
  "retryEvents": 2,
  "uniqueAmount": 12000,
  "retryAmount": 4000
}
What is the deduplicated amount?

12,000 under the stipulated classifications.

Why not deduplicate using amount alone?

Separate legitimate obligations can share the same amount; business identity and evidence are needed.

What does a timeout establish?

Only an unresolved communication outcome in this scenario, not proof that the payment failed.

Compare the calculated baseline after your attempt
{
  "receivedEvents": "8",
  "rawAmount": "16000",
  "uniqueAmount": "12000",
  "retryEventPercent": "25.00",
  "retryAmountPercent": "25.00"
}

Existing lesson: Api Contract · Read and save responses

Boundary: supplemental synthetic calculation, not another complete lab or proof of production-system behaviour.

Financial approvals: authority and supporting evidence

Prepare an authority/evidence exception register with version, amount and accountable reviewer.

python3 finance_v93_fixtures.py --case finance-value--governance

{
  "total": 20,
  "approval": 16,
  "support": 15,
  "both": 12
}
Reconstruct the four groups.

Both 12; approval-only 4; support-only 3; neither 1.

What is joint coverage?

12 / 20 × 100 = 60%.

Does missing support prove fraud?

No. It identifies an evidence gap needing investigation, not a legal or audit conclusion.

Compare the calculated baseline after your attempt
{
  "both": "12",
  "approvalOnly": "4",
  "supportOnly": "3",
  "neither": "1",
  "jointPercent": "60.0"
}

Existing lesson: Password And Access Review · Read and save responses

Boundary: supplemental synthetic calculation, not another complete lab or proof of production-system behaviour.

Finance training, transfer and retained understanding

Make a denominator-labelled learning dashboard with accessible revision and support routes.

python3 finance_v93_fixtures.py --case finance-value--learning-tools

{
  "invited": 24,
  "attended": 20,
  "immediate": 16,
  "later": 12
}
What is later coverage of invitees?

12 / 24 = 50%.

Why is the attendee-denominator rate different?

It conditions on 20 attendees: 12 / 20 = 60%; it answers a different question.

What should a low rate trigger?

Investigation of task, access, opportunity and support; not an automatic personnel judgement.

Compare the calculated baseline after your attempt
{
  "attendancePercent": "83.33333333333333333333333333",
  "immediatePercent": "66.66666666666666666666666667",
  "laterPercent": "50.0",
  "laterAmongAttendeesPercent": "60.0"
}

Existing lesson: Management Dashboard · Read and save responses

Boundary: supplemental synthetic calculation, not another complete lab or proof of production-system behaviour.

Service downtime and contribution at risk

Draft a downtime-to-business-impact ledger and a pending-work recovery checklist.

python3 finance_v93_fixtures.py --case finance-value--operating-systems

{
  "minutes": 45,
  "rate": 2,
  "contribution": 30,
  "recovered": 30
}
What is gross contribution at risk?

45 × 2 × 30 = 2,700 under the assumed constant demand.

Why is this not a measured loss?

Actual demand, abandonment, recovery and alternative channels have not been observed.

What survives technical restoration?

Pending work, reconciliation, communications and any unresolved business obligations.

Compare the calculated baseline after your attempt
{
  "affected": "90",
  "grossAtRisk": "2700",
  "unresolved": "60",
  "unresolvedContribution": "1800"
}

Existing lesson: Backup And Restore · Read and save responses

Boundary: supplemental synthetic calculation, not another complete lab or proof of production-system behaviour.

Atomic transfers and the conservation check

Design a synthetic transfer transaction, invariant and failure/retry tests in the database lesson.

python3 finance_v93_fixtures.py --case finance-value--databases

{
  "a": 5000,
  "b": 2000,
  "transfer": 600
}
What balances follow the complete transfer?

A = 4,400, B = 2,600; combined total = 7,000.

Can a conserved total prove the correct recipient?

No. A wrong-recipient credit can preserve the total.

What does the worksheet execute?

Arithmetic only, not SQL, concurrency tests or a real transfer.

Compare the calculated baseline after your attempt
{
  "aAfter": "4400",
  "bAfter": "2600",
  "totalBefore": "7000",
  "totalAfter": "7000",
  "debitOnlyTotal": "6400"
}

Existing lesson: Database Constraints · Read and save responses

Boundary: supplemental synthetic calculation, not another complete lab or proof of production-system behaviour.

Line rounding versus aggregate rounding

Write decimal boundary tests and a rounding-policy note with original amount provenance.

python3 finance_v93_fixtures.py --case finance-value--programming

{
  "unit": "0.335",
  "lines": 3
}
What are the two totals?

Line rounding gives 1.02; aggregate rounding gives 1.01 under the stated half-up policy.

Is half-up declared universally correct?

No. It is the explicit example policy; applicable requirements need separate verification.

Why preserve the input string?

It retains the stated exact decimal value rather than introducing a binary-float conversion before calculation.

Compare the calculated baseline after your attempt
{
  "lineRounded": "0.34",
  "lineTotal": "1.02",
  "aggregateRounded": "1.01",
  "difference": "0.01"
}

Existing lesson: Python Cleaning · Read and save responses

Boundary: supplemental synthetic calculation, not another complete lab or proof of production-system behaviour.

Timeouts, status enquiries and the cost of uncertainty

Create a request/status reconciliation table with explicit pause and enquiry owners.

python3 finance_v93_fixtures.py --case finance-value--networks

{
  "sent": 40,
  "timeouts": 5,
  "confirmed": 3,
  "minutesEach": 6,
  "amountEach": 500
}
How many outcomes remain unresolved?

Five timeout outcomes minus three subsequently confirmed = two.

Does 1,000 mean lost money?

No. It is the assumed amount associated with unresolved outcomes.

What is the remaining investigation workload?

Two × six = twelve minutes under the stipulated per-request assumption.

Compare the calculated baseline after your attempt
{
  "unresolved": "2",
  "timeoutPercent": "12.500",
  "unresolvedPercent": "5.00",
  "investigationMinutes": "12",
  "amountUnresolved": "1000"
}

Existing lesson: Http Request Tracing · Read and save responses

Boundary: supplemental synthetic calculation, not another complete lab or proof of production-system behaviour.

Cloud budget alerts and a bounded run-rate scenario

Write a budget/forecast/alert responsibility map and a workload-based sensitivity scenario.

python3 finance_v93_fixtures.py --case finance-value--cloud

{
  "budget": 1000,
  "spend": 600,
  "elapsedDays": 18,
  "periodDays": 30
}
What does the simple run rate predict?

1,000 units under constant daily spending and the stated period.

Does a budget alert guarantee a cap?

No. The selected Google documentation says budgets do not automatically cap usage or spending.

What if elapsed days are 15?

Run rate becomes 1,200 and forecast headroom minus 200.

Compare the calculated baseline after your attempt
{
  "consumedPercent": "60.0",
  "runRate": "1000",
  "forecastHeadroom": "0"
}

Existing lesson: Cloud Responsibility Map · Read and save responses

Boundary: supplemental synthetic calculation, not another complete lab or proof of production-system behaviour.

Security investment and expected-loss assumptions

Prepare a threat-to-cost assumption register with a sensitivity case and human decision boundary.

python3 finance_v93_fixtures.py --case finance-value--cybersecurity

{
  "beforeProbability": "0.1",
  "afterProbability": "0.04",
  "impact": 100000,
  "annualCost": 3000
}
What is residual expected loss?

0.04 × 100,000 = 4,000 under the invented probability and impact.

What happens with post-control probability 0.09?

Reduction is 1,000 and net expected benefit minus 2,000.

What evidence is missing?

Validated probabilities, impact scope, control effect, operational consequences and applicable obligations.

Compare the calculated baseline after your attempt
{
  "beforeExpected": "10000.0",
  "afterExpected": "4000.00",
  "reduction": "6000.00",
  "netExpectedBenefit": "3000.00"
}

Existing lesson: Threat Model · Read and save responses

Boundary: supplemental synthetic calculation, not another complete lab or proof of production-system behaviour.

Acceptance criteria and correct financial meaning

Write versioned financial API examples and separate arithmetic from semantic acceptance evidence.

python3 finance_v93_fixtures.py --case finance-value--software-engineering

{
  "total": 20,
  "arithmetic": 17,
  "semantic": 14,
  "both": 13
}
What is joint coverage?

13 / 20 = 65%.

Give an arithmetic-only pass example.

A correct calculation using values for the wrong reporting period or currency.

Does the fixture execute application acceptance tests?

No. It reconstructs stipulated categories only.

Compare the calculated baseline after your attempt
{
  "both": "13",
  "arithmeticOnly": "4",
  "semanticOnly": "1",
  "neither": "2",
  "jointPercent": "65.00"
}

Existing lesson: Api Contract · Read and save responses

Boundary: supplemental synthetic calculation, not another complete lab or proof of production-system behaviour.

Transaction grain, retransmissions and genuine reversals

Build a raw/canonical reconciliation bridge with duplicate and reversal categories kept distinct.

python3 finance_v93_fixtures.py --case finance-value--data-engineering

{
  "originals": 12,
  "retransmissions": 3,
  "reversals": 1,
  "originalAmount": 12000,
  "retransmittedAmount": 3000,
  "reversalAmount": 1000
}
What is canonical net under the assumptions?

12,000 minus the genuine 1,000 reversal = 11,000.

Why keep the reversal?

It represents a genuine business correction, not another transmission of the original sale.

What makes same-amount deduplication dangerous?

Two distinct legitimate sales can have equal amounts; evidence and business identity are required.

Compare the calculated baseline after your attempt
{
  "rawEvents": "16",
  "naiveNet": "14000",
  "canonicalNet": "11000",
  "overstatement": "3000"
}

Existing lesson: Sql Reconciliation · Read and save responses

Boundary: supplemental synthetic calculation, not another complete lab or proof of production-system behaviour.

Receivables coverage and weighted financial dashboards

Design paired count/amount receivables views with reporting date and dispute/correction ownership.

python3 finance_v93_fixtures.py --case finance-value--visualisation

{
  "aInvoices": 30,
  "aAmount": 30000,
  "aOverdue": 18000,
  "bInvoices": 10,
  "bAmount": 50000,
  "bOverdue": 10000
}
What is the combined amount-overdue share?

28,000 / 80,000 × 100 = 35%.

Why is 40% unsuitable for that combined share?

It weights departments equally rather than weighting their receivable amounts.

Can we infer the overdue invoice count?

No. Overdue amounts do not identify how many individual invoices are overdue.

Compare the calculated baseline after your attempt
{
  "invoices": "40",
  "totalAmount": "80000",
  "overdueAmount": "28000",
  "aPercent": "60.0",
  "bPercent": "20.0",
  "pooledPercent": "35.00",
  "unweightedPercent": "40.0"
}

Existing lesson: Power Bi Report · Read and save responses

Boundary: supplemental synthetic calculation, not another complete lab or proof of production-system behaviour.

Selected free primary readings

Current learning batch · Calculation review