Skip to content

favouritehu/import-calculator

Repository files navigation

Container Landed Cost (No GST) — Web App

A single-page calculator: FOB → CIF → + Duty (BCD+SWS, no GST) → + Port add‑ons (Falcon non‑ocean) → + Trucking → Final (No GST) with optional pricing layer.

Quick start

# 1) Install deps
npm i

# 2) Run dev server
npm run dev   # then open the URL printed by Vite

# 3) Build for production
npm run build && npm run preview

Styling is via Tailwind CDN in index.html (no setup required).

CSV templates

  • Items columns: name, unit, qty, fobUsd, bcdRate
  • Settings columns: exr, seaFreightINR, insuranceINR, falconNonOceanINR, truckingINR, fiBasis, ptBasis

Use the Items Template / Settings Template buttons in the UI or the sample CSVs in /public.

Export via Export Calculations CSV to download per‑item computed outputs (FOB/CIF/Duty/Port/Truck/Final per unit, plus optional Dealer price if enabled).

Test (smoke)

We include a light test with Vitest/JSDOM to ensure the header renders.

npm run test

About

import calculator

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published