mirror of
https://github.com/nickyeoman/docker-compose-cookbooks.git
synced 2026-12-06 20:38:50 +00:00
- templates/: split template/ into personal, household, business (sole
proprietor) and corporation
- demo: BMO/RBC/Scotiabank/CIBC accounts, GIC, BTC wallet, office
equipment, hand tools, recurring internet/water/cleaning, more credit
card activity; tax sheet figures updated
- year and budget files include accounts.ledger so the editor's
per-file --pedantic check passes
- docs follow ${VOL_PATH:-/data}/paisa; drop paisa VOL_PATH exceptions
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
38 lines
1.8 KiB
Plaintext
38 lines
1.8 KiB
Plaintext
// Tax estimates for Demolition Company Ltd. (demo)
|
|
// Ledger signs: credits (income, tax collected) are negative, so
|
|
// negate them to read as positive numbers.
|
|
|
|
// Rates (simplified; confirm current rates with an accountant)
|
|
small_business_rate = 11%
|
|
gst_rate = 5%
|
|
|
|
// Exclude the 2025 closing entry so the real figures show
|
|
not_closing = {NOT payee =~ /Close 2025/}
|
|
pre_tax = {account =~ /^(Income|Expenses):/ AND NOT account = Expenses:IncomeTax} AND not_closing
|
|
|
|
// ---- Fiscal 2025 (December 2025) ----
|
|
fy2025 = {date >= [2025-01-01] AND date < [2026-01-01]}
|
|
profit_2025 = -cost(pre_tax AND fy2025) ; 3,890.00
|
|
tax_2025 = profit_2025 * small_business_rate ; 427.90, accrued Dec 31
|
|
|
|
gst_collected_2025 = -cost({account = Liabilities:GST:Collected} AND fy2025) ; 772.50
|
|
gst_itc_2025 = cost({account = Assets:GST:InputTaxCredits} AND fy2025) ; 13,090.00
|
|
gst_net_2025 = gst_collected_2025 - gst_itc_2025 ; -12,317.50 = refund due
|
|
|
|
// ---- 2026 year to date ----
|
|
ytd = {date >= [2026-01-01] AND date < [2027-01-01]}
|
|
profit_ytd = -cost(pre_tax AND ytd) ; 10,332.20
|
|
tax_ytd = profit_ytd * small_business_rate ; 1,136.54 to set aside
|
|
|
|
gst_collected_ytd = -cost({account = Liabilities:GST:Collected} AND ytd) ; 3,640.00
|
|
gst_itc_ytd = cost({account = Assets:GST:InputTaxCredits} AND ytd) ; 525.10
|
|
gst_net_ytd = gst_collected_ytd - gst_itc_ytd ; 3,114.90 owing to CRA
|
|
pst_ytd = -cost({account = Liabilities:PST:Collected} AND ytd) ; 4,900.00 owing to BC
|
|
|
|
// Cash to hold back for tax this year
|
|
set_aside = tax_ytd + gst_net_ytd + pst_ytd ; 9,151.44
|
|
|
|
// Function: GST included in a tax-inclusive receipt total
|
|
gst_in(total) = total * gst_rate / (1 + gst_rate)
|
|
gst_in(1,050) ; 50.00
|