← Back to Blog

Building an HKFRS 16 Lease Calculator

Finance · Technology · January 2026

From spreadsheets to a purpose-built tool: design decisions, validation logic, and why we chose front-end only.

The Problem: AI and Accuracy in Finance

Everyone's talking about AI. But in finance, one thing matters more than hype: accuracy. I wondered: What if we use AI differently—not to replace accountants, but to help build the tools we trust?

That's how I built the HKFRS 16 Lease Calculator. I used AI to write the code. The logic is traceable. No hidden exceptions. It follows HKFRS 16 (and IFRS 16) step by step.

What the Tool Does

Design Decisions: Validation and Error Handling

How do we get reliable data from users? The design relies on two layers: Excel first, then the web.

Layer 1: Excel Template

We lock the header row so users cannot edit it—column names stay predictable for parsing. For categorical fields (Payment Frequency, Payment Timing), we use Excel dropdowns to reduce typos.

Layer 2: Web Validation

After upload, the web app validates headers and each row. If required columns are missing or data is invalid, we show clear error messages—no silent failures.

"These rows will be skipped: Row 4 (Office Lease B): missing Start Date. Fill required fields to include them."

Why Front-End Only?

Try it: HKFRS 16 Lease Calculator →

HKFRS 16 Lease Calculator — MVP. Refining based on user feedback.