Rufineer v0.43.0
Account
Browse the docs

Example 13 of 13

Aframax tanker on time charter

Based on Project Finance-Class 5 Start.xlsm

A 70,000-tonne tanker bought for USD 60m and chartered out by the day. Charter days fall during dry-docks that grow longer with age, charter rates follow the market with a three-month lag, and the owner reports returns in dollars and rupees. Design example: written in the full v0.5 language. The compiler builds the working core today, so this one doesn't compile yet. Source: examples/design/ship/.

Library
A. Featured Models / L. Shipping (6 files)
Timeline
36 months to delivery, 25-year life; operations monthly, financing quarterly
Ship
70,000 t; capex USD 60m paid 10% / 10% / 70% / 10% at months 1, 13, 25 and 36
Operations
Charter rate forecast in real USD a day (15,457 in 2023), 3-month lag; daily costs USD 3,289; dry-dock 15, 25 and 35 days at ages 1, 5 and 15
Finance
Up to 90% debt, KIBOR 10% + 1%, 8 years, 1% upfront; WACC 7% (USD) and 14% (PKR)
Rebuild shown
4 files, 74 lines

Where each sheet goes

Workbook sheetsRufineer
Inputinputs.rfn and the Charter rates and Dry-dock sheets
Operations - Monthlyoperations.rfn on the monthly ruler
Financing - Quarterlyfinancing.rfn on the quarterly ruler
Rates and Oil, Interpolateinterpolate on the charter-rate curve
Debt Sculpting, Taxes and NOLfinancing.rfn

Source 4 files shown, 74 lines

model.rfn
model "Aframax Tanker" {
  currency  USD
  currency  PKR
  data      "tanker_inputs.xlsx"
}

timeline {
  start             2023-01-01
  construction      36m                     // build to delivery
  operations        25y
  ruler monthly     month
  ruler quarterly   quarter
}

fx PKR/USD = ppp(178, local: inputs.macro.pkr_cpi, foreign: inputs.macro.usd_cpi)

What this model needed from the language

  • Days inside a period. overlap(drydock[*]) counts the dry-dock days that fall in each month, including one that runs across a month end.
  • A lag. Charter rates reset three months after the market: | lag 3m.
  • Age bands. Insurance steps up at 10 and 15 years: bands(age, …).
  • A rupee loan against dollar earnings, with returns in both currencies.