How LLC Owners Save on Taxes in 2026

Home Health Care Find more write-offs — search your profession or a specific deduction
Try:
Others Also Use These Strategies
Home Health Care Business IRC §162, §3111

Caregiver & Home Health Aide Wages

All wages, salaries, and compensation paid to home health aides (HHAs), certified nursing assistants (CNAs), personal care aides (PCAs), and other direct care workers are fully deductible under IRC §162. This includes regular wages, overtime pay, shift differentials, and holiday pay. The employer's share of FICA taxes (Social Security and Medicare) is also deductible, as are unemployment insurance premiums (FUTA/SUTA) and workers' compensation insurance premiums.

Eligibility Requirements
  • Licensed home health care agency or private duty agency
  • Wages paid to W-2 employees (HHAs, CNAs, PCAs, RNs, LPNs)
  • 1099 payments to independent contractor caregivers
  • Employer payroll taxes (FICA, FUTA, SUTA)
  • Workers' compensation insurance premiums
Example Savings Scenario

A home health care agency with $500,000 in annual caregiver wages saves $185,000 in federal taxes at 37% effective rate — wages are the largest single deduction for most agencies.

MERNA Strategy Notes

Properly classify workers as employees vs. independent contractors — the IRS scrutinizes home care agencies heavily. Misclassification triggers back payroll taxes, penalties, and interest. Use an accountable plan to reimburse caregivers for mileage and supplies tax-free.

Common Mistake: Misclassifying employees as independent contractors is one of the top IRS audit triggers for home health care businesses. Document the economic reality test for every 1099 worker.
Home Health Care Business IRC §162, §132(d)

Caregiver Mileage & Vehicle Reimbursement

Home health care businesses incur significant vehicle costs — caregivers drive to client homes, supervisors conduct home visits, and owners travel to meetings and training. The 2026 IRS standard mileage rate is 70 cents per mile for business use. Agencies can reimburse caregivers for mileage through an accountable plan, making the reimbursement tax-free to the employee and fully deductible to the business. Alternatively, actual vehicle expenses (fuel, insurance, maintenance, depreciation) can be deducted based on business-use percentage.

Eligibility Requirements
  • Business miles driven to client homes
  • Supervisor home visit mileage
  • Training, licensing, and continuing education travel
  • Caregiver mileage reimbursements through accountable plan
  • Owner/operator vehicle used for business
Example Savings Scenario

A home health care agency owner driving 20,000 business miles per year deducts $14,000 at the 2026 rate of 70 cents per mile, saving $5,180 in taxes at 37%.

MERNA Strategy Notes

Use a mileage tracking app (MileIQ, Everlance, TripLog) for every caregiver and supervisor. Reimburse through an accountable plan — this keeps the reimbursement off the caregiver's W-2 and gives the agency a full deduction.

Common Mistake: Commuting miles (home to first client) are not deductible. Only miles driven between client homes and for business purposes qualify.
Home Health Care Business IRC §162, §179

Medical Supplies, PPE & Clinical Equipment

All medical supplies and personal protective equipment (PPE) used in providing home health care services are fully deductible: disposable gloves, masks, gowns, face shields, hand sanitizer, wound care supplies, blood pressure cuffs, pulse oximeters, glucometers, thermometers, stethoscopes, and other clinical equipment. Larger equipment (hospital beds, wheelchairs, Hoyer lifts, CPAP machines) qualifies for Section 179 immediate expensing if owned by the agency. Uniforms, scrubs, and non-adaptable work clothing are also deductible.

Eligibility Requirements
  • Disposable PPE (gloves, masks, gowns)
  • Clinical equipment (BP cuffs, pulse oximeters, glucometers)
  • Wound care and medical supplies
  • Uniforms, scrubs, and work clothing
  • Durable medical equipment owned by the agency
Example Savings Scenario

A home health care agency spending $18,000/year on PPE, supplies, and clinical equipment saves $6,660 in taxes at 37%.

MERNA Strategy Notes

Track supply purchases separately from other expenses. Bulk purchasing in December accelerates the deduction into the current tax year. Durable equipment over $2,500 should be capitalized and depreciated — or immediately expensed under Section 179.

Common Mistake: Supplies purchased for personal use or non-business purposes are not deductible. Keep purchase records showing business purpose.
Home Health Care Business IRC §162

Professional Liability, General Liability & Bonding Insurance

All insurance premiums required to operate a home health care business are fully deductible: professional liability (malpractice) insurance, general liability insurance, workers' compensation insurance, commercial auto insurance, caregiver bonding insurance, cyber liability insurance (HIPAA breach coverage), directors and officers (D&O) insurance, and umbrella policies. These are ordinary and necessary business expenses under IRC §162.

Eligibility Requirements
  • Professional liability (malpractice) insurance
  • General liability insurance
  • Workers' compensation insurance
  • Caregiver bonding insurance
  • Cyber liability / HIPAA breach insurance
Example Savings Scenario

A home health care agency paying $24,000/year in combined liability, workers' comp, and bonding insurance saves $8,880 in taxes at 37%.

MERNA Strategy Notes

Review coverage annually with a healthcare-specialized insurance broker. Cyber liability insurance is increasingly important as home care agencies store protected health information (PHI) — and the premium is fully deductible.

Common Mistake: Personal life insurance or disability insurance for the owner is generally not deductible as a business expense unless structured as a key-person policy.
Home Health Care Business IRC §162

Home Care Software, Scheduling & EHR Systems

All software used to operate a home health care business is fully deductible: scheduling and care management platforms (WellSky, ClearCare, Alayacare, AxisCare, Generations, Rosemark, HHAeXchange), electronic health record (EHR) systems, billing and claims software, payroll software (ADP, Paychex, Gusto), accounting software (QuickBooks, Xero), telehealth platforms, HIPAA-compliant communication tools, and HR management systems.

Eligibility Requirements
  • Home care scheduling software (WellSky, ClearCare, AxisCare)
  • Electronic health record (EHR) systems
  • Billing, claims, and revenue cycle software
  • Payroll and HR management platforms
  • HIPAA-compliant communication and telehealth tools
Example Savings Scenario

A home health care agency spending $12,000/year on scheduling, EHR, billing, and payroll software saves $4,440 in taxes at 37%.

MERNA Strategy Notes

Annual software subscriptions paid in December accelerate the deduction. Consider consolidating to an all-in-one platform — it's often cheaper and creates a larger single deduction.

Common Mistake: Software must be used for business operations. Personal software or apps not related to the home care business are not deductible.
Business Expenses IRC §162 Uncle Kam Clients Only

Scrubs, Uniforms & Protective Clothing Deduction

Work clothing that is required as a condition of employment and not suitable for everyday wear is fully deductible. For healthcare professionals, this includes scrubs, lab coats, surgical gowns, nursing shoes, compression socks worn for work, and any other required clinical attire. The clothing must be required by your employer or profession and not adaptable to everyday use.

Eligibility Requirements
  • Clothing required as condition of employment
  • Not suitable for everyday personal wear
  • Self-employed healthcare professionals can deduct fully; W-2 employees need employer reimbursement
Example Savings Scenario

A travel nurse spending $800/year on scrubs, compression socks, and nursing shoes deducts the full amount, saving $240–$320 in taxes.

Unlock the Full Strategy Breakdown — Free

Enter your email for instant access to MERNA strategy notes, IRS red flag warnings, action steps, and implementation guide.

No spam · No obligation · Instant access
Business Expenses IRC §162 Uncle Kam Clients Only

Medical Supplies & Clinical Equipment Deduction

Healthcare professionals can deduct the cost of medical supplies and clinical equipment used in their practice. This includes stethoscopes, blood pressure cuffs, otoscopes, diagnostic tools, syringes, gloves, masks, bandages, and any other consumable or durable medical supplies used in patient care. Larger equipment qualifies for Section 179 immediate expensing.

Eligibility Requirements
  • Used in clinical practice or patient care
  • Self-employed healthcare professional or practice owner
  • Consumable supplies deducted in year purchased; equipment may be Section 179 expensed
Example Savings Scenario

A self-employed nurse practitioner spending $2,000/year on clinical supplies, a new stethoscope, and diagnostic tools deducts the full amount, saving $600–$800.

Unlock the Full Strategy Breakdown — Free

Enter your email for instant access to MERNA strategy notes, IRS red flag warnings, action steps, and implementation guide.

No spam · No obligation · Instant access
Self-Employed IRC §162(l) Uncle Kam Clients Only

Self-Employed Health Insurance Deduction

Self-employed individuals can deduct 100% of health insurance premiums paid for themselves, their spouse, and dependents as an above-the-line deduction.

Eligibility Requirements
  • Self-employed with net profit
  • Not eligible for employer-sponsored health insurance
  • Includes medical, dental, and long-term care premiums
Example Savings Scenario

Paying $18,000/year in family health insurance premiums deducts the full amount, saving $6,660 at a 37% rate.

Unlock the Full Strategy Breakdown — Free

Enter your email for instant access to MERNA strategy notes, IRS red flag warnings, action steps, and implementation guide.

No spam · No obligation · Instant access
Business Expenses IRC §162 Uncle Kam Clients Only

Fitness Equipment, Certifications & Supplies Deduction

Personal trainers and fitness professionals can deduct the cost of equipment and supplies used in their business. This includes resistance bands, foam rollers, kettlebells, dumbbells, mats, stopwatches, heart rate monitors, fitness apps, and any other tools used with clients. Certification renewal fees (NASM, ACE, NSCA, ACSM) and continuing education are also fully deductible.

Eligibility Requirements
  • Equipment and supplies used with clients or in your fitness business
  • Self-employed personal trainer or fitness professional
  • Certification renewal fees for your current profession
Example Savings Scenario

A personal trainer spending $2,500/year on equipment, certification renewals, and liability insurance deducts the full amount, saving $750–$1,000.

Unlock the Full Strategy Breakdown — Free

Enter your email for instant access to MERNA strategy notes, IRS red flag warnings, action steps, and implementation guide.

No spam · No obligation · Instant access
Business Expenses IRC §162 Uncle Kam Clients Only

Malpractice & Professional Liability Insurance Deduction

Professional liability insurance (malpractice insurance) premiums are fully deductible as a business expense. This applies to all licensed professionals including physicians, dentists, nurses, attorneys, financial advisors, CPAs, architects, and any other professional who carries liability coverage for their practice.

Eligibility Requirements
  • Professional liability or malpractice insurance policy
  • Coverage related to your professional practice
  • Self-employed or business owner
Example Savings Scenario

A physician paying $8,000/year in malpractice insurance premiums deducts the full amount, saving $2,400–$3,200 in taxes.

Unlock the Full Strategy Breakdown — Free

Enter your email for instant access to MERNA strategy notes, IRS red flag warnings, action steps, and implementation guide.

No spam · No obligation · Instant access
Business Expenses IRC §162 / IRC §179 Uncle Kam Clients Only

Camera Gear & Production Equipment Deduction

Photographers, videographers, and content creators can deduct the full cost of cameras, lenses, tripods, lighting equipment, microphones, audio recorders, drones, gimbals, memory cards, hard drives, and any other production equipment used in their business. Under Section 179, the full cost can be expensed in Year 1 instead of depreciated over 5 years.

Eligibility Requirements
  • Equipment used for business photography, video, or content creation
  • Self-employed photographer, videographer, or content creator
  • Business use percentage must be documented for mixed-use equipment
Example Savings Scenario

A photographer purchasing a $3,500 camera body and $1,200 in lenses expenses the full $4,700 under Section 179, saving $1,410–$1,880 in taxes.

Unlock the Full Strategy Breakdown — Free

Enter your email for instant access to MERNA strategy notes, IRS red flag warnings, action steps, and implementation guide.

No spam · No obligation · Instant access
Business IRC §162, §179 Uncle Kam Clients Only

Vehicle & Mileage Deduction

Deduct business vehicle expenses using the standard mileage rate or actual expenses (depreciation, gas, insurance, repairs). Section 179 and 100% bonus depreciation allow full expensing of heavy SUVs and trucks in Year 1.

Eligibility Requirements
  • Vehicle used for business purposes
  • Mileage log maintained for standard rate method
  • Heavy SUV (6,000+ lbs GVWR) for Section 179 bonus
Example Savings Scenario

Driving 20,000 business miles at 72.5¢/mile = $14,500 deduction. A $80,000 SUV over 6,000 lbs can be fully expensed under 100% bonus depreciation, saving $29,600 at 37%.

Unlock the Full Strategy Breakdown — Free

Enter your email for instant access to MERNA strategy notes, IRS red flag warnings, action steps, and implementation guide.

No spam · No obligation · Instant access
Business IRC §199A Uncle Kam Clients Only 2026 Law Update

Qualified Business Income (QBI) Deduction

Pass-through business owners (sole props, partnerships, S-Corps, LLCs) can deduct up to 23% of qualified business income starting in 2026, permanently under the OBBBA. The deduction reduces effective tax rates significantly.

Eligibility Requirements
  • Income from a pass-through entity or sole proprietorship
  • Taxable income below income thresholds for full deduction (consult advisor for 2026 inflation-adjusted limits)
  • Specified service trades may be phased out above thresholds
  • New minimum deduction of $400 for taxpayers with at least $1,000 of active QBI
Example Savings Scenario

A consultant earning $200,000 in QBI deducts $46,000 (23%), saving $17,020 at a 37% rate — $2,220 more than under the old 20% rule.

Unlock the Full Strategy Breakdown — Free

Enter your email for instant access to MERNA strategy notes, IRS red flag warnings, action steps, and implementation guide.

No spam · No obligation · Instant access
Business Expenses IRC §162 Uncle Kam Clients Only

Internet & Broadband Deduction

Your home internet bill is deductible to the extent it is used for business. For most self-employed professionals who work from home, this is 50–100% of the monthly cost. A dedicated business internet line is 100% deductible.

Eligibility Requirements
  • Self-employed, freelancer, or business owner
  • Internet used for business purposes
  • Allocate business vs personal use if mixed
Example Savings Scenario

A self-employed consultant paying $80/month for internet and using it 80% for business deducts $768/year, saving $230–$307 in taxes.

Unlock the Full Strategy Breakdown — Free

Enter your email for instant access to MERNA strategy notes, IRS red flag warnings, action steps, and implementation guide.

No spam · No obligation · Instant access
Business IRC §280A(g) Uncle Kam Clients Only

Augusta Rule (Section 280A Home Rental)

Under IRC §280A(g), a homeowner can rent their personal residence to their business for up to 14 days per year. The rental income is completely tax-free to the homeowner, and the business deducts the full rental payment.

Eligibility Requirements
  • Own a business (S-Corp, C-Corp, or partnership)
  • Own your personal residence
  • Have legitimate business meetings, retreats, or events at your home
Example Savings Scenario

A business owner renting their home to their S-Corp for 14 days at $2,000/day: $28,000 in tax-free income to the owner + $28,000 business deduction saves $10,360 at a 37% rate.

Unlock the Full Strategy Breakdown — Free

Enter your email for instant access to MERNA strategy notes, IRS red flag warnings, action steps, and implementation guide.

No spam · No obligation · Instant access
Business IRC §1366, Rev. Rul. 74-44 Uncle Kam Clients Only

S-Corp Reasonable Salary Optimization

S-Corp shareholders pay payroll taxes only on their "reasonable salary," not on all business profits. Distributions above the salary avoid 15.3% self-employment tax.

Eligibility Requirements
  • Operate as an S-Corporation
  • Pay yourself a reasonable salary for services rendered
  • Take remaining profits as distributions
Example Savings Scenario

A business earning $300,000 net. Salary set at $80,000 (reasonable). Distributions: $220,000. SE tax savings: $220,000 × 15.3% = $33,660/year.

Unlock the Full Strategy Breakdown — Free

Enter your email for instant access to MERNA strategy notes, IRS red flag warnings, action steps, and implementation guide.

No spam · No obligation · Instant access
Business IRC §280A Uncle Kam Clients Only

Home Office Deduction

Deduct a portion of your home expenses (mortgage interest, rent, utilities, insurance, depreciation) based on the percentage of your home used exclusively and regularly for business.

Eligibility Requirements
  • Self-employed, freelancer, or business owner
  • Space used exclusively and regularly for business
  • Principal place of business or where clients are met
Example Savings Scenario

A 200 sq ft office in a 2,000 sq ft home = 10% allocation. $30,000 in home expenses × 10% = $3,000 deduction, saving $1,110 at a 37% rate.

Unlock the Full Strategy Breakdown — Free

Enter your email for instant access to MERNA strategy notes, IRS red flag warnings, action steps, and implementation guide.

No spam · No obligation · Instant access
Business Expenses IRC §162 Uncle Kam Clients Only

Continuing Education & CE Credits Deduction

Continuing education required to maintain your professional license or improve skills in your current trade is fully deductible. This includes CME credits for physicians, CLE credits for attorneys, CPE credits for CPAs, CE credits for nurses, real estate CE, and any other mandatory or voluntary professional development directly related to your current work.

Eligibility Requirements
  • Education maintains or improves skills in your current profession
  • Does not qualify you for a new career or profession
  • Self-employed or business owner
Example Savings Scenario

A CPA spending $3,000/year on CPE courses, webinars, and AICPA membership saves $900–$1,200 in taxes.

Unlock the Full Strategy Breakdown — Free

Enter your email for instant access to MERNA strategy notes, IRS red flag warnings, action steps, and implementation guide.

No spam · No obligation · Instant access
Business Expenses IRC §162 / IRC §179 Uncle Kam Clients Only

Tools, Equipment & Supplies Deduction (Trades)

Tradespeople and contractors can deduct the full cost of tools and equipment used in their business. Small tools (under $2,500) are expensed immediately. Larger equipment qualifies for Section 179 immediate expensing or 100% bonus depreciation. This includes hand tools, power tools, ladders, scaffolding, safety gear, hard hats, work boots, and any other equipment used on the job.

Eligibility Requirements
  • Tools and equipment used in your trade or business
  • Self-employed contractor or business owner
  • Small tools expensed immediately; larger equipment via Section 179
Example Savings Scenario

A general contractor spending $5,000/year on tools, safety equipment, and work gear deducts the full amount, saving $1,500–$2,000 in taxes.

Unlock the Full Strategy Breakdown — Free

Enter your email for instant access to MERNA strategy notes, IRS red flag warnings, action steps, and implementation guide.

No spam · No obligation · Instant access
Personal Trainer IRC §162 Uncle Kam Clients Only

NASM, ACE, NSCA & Personal Trainer Certification Fees

NASM, ACE, NSCA, ISSA, and ACSM certification fees, renewal fees, and CEU requirements are fully deductible for self-employed personal trainers.

Eligibility Requirements
  • Self-employed personal trainer
  • Certification fees for maintaining existing credentials
  • CEU requirements for license renewal
Example Savings Scenario

A personal trainer paying $699 for NASM CPT renewal, $400 for a nutrition specialty cert, and $300 in CEU courses deducts $1,399 — saving $462 at 33%.

Unlock the Full Strategy Breakdown — Free

Enter your email for instant access to MERNA strategy notes, IRS red flag warnings, action steps, and implementation guide.

No spam · No obligation · Instant access
Business Expenses IRC §162 / IRC §179 Uncle Kam Clients Only

Computer, Laptop & Hardware Deduction

Computers, laptops, tablets, monitors, keyboards, mice, external hard drives, and other hardware used in your business are fully deductible. Under Section 179, you can expense the full cost in Year 1 instead of depreciating over 5 years. For mixed business/personal use, only the business-use percentage is deductible.

Eligibility Requirements
  • Computer or hardware used for business purposes
  • Self-employed, freelancer, or business owner
  • Business-use percentage documented for mixed-use devices
Example Savings Scenario

A freelance software engineer purchasing a $2,500 laptop used 95% for work expenses $2,375 under Section 179, saving $713–$950 in taxes.

Unlock the Full Strategy Breakdown — Free

Enter your email for instant access to MERNA strategy notes, IRS red flag warnings, action steps, and implementation guide.

No spam · No obligation · Instant access
Retirement IRC §401(k) Uncle Kam Clients Only

Solo 401(k) Contribution

Self-employed individuals can contribute both as employee ($24,500 in 2026, or $31,000 if 50+) and employer (up to 25% of compensation), for a combined maximum of approximately $70,000.

Eligibility Requirements
  • Self-employed with no full-time employees (other than spouse)
  • Net self-employment income
  • Roth option available for after-tax contributions
Example Savings Scenario

A self-employed consultant earning $200,000 contributes ~$70,000 to a Solo 401(k), reducing taxable income to $130,000 and saving $25,900 at a 37% rate.

Unlock the Full Strategy Breakdown — Free

Enter your email for instant access to MERNA strategy notes, IRS red flag warnings, action steps, and implementation guide.

No spam · No obligation · Instant access
Business Expenses IRC §162 Uncle Kam Clients Only

Office Supplies & Materials Deduction

Any supplies you purchase and use in your business are fully deductible in the year purchased. This includes paper, pens, printer ink and toner, folders, binders, postage, envelopes, labels, staples, tape, and any other consumable materials used in your work.

Eligibility Requirements
  • Self-employed, freelancer, or business owner
  • Supplies used for business purposes
  • Consumed or used up within the tax year
Example Savings Scenario

A small business owner spending $1,200/year on office supplies saves $360–$480 in taxes depending on their bracket.

Unlock the Full Strategy Breakdown — Free

Enter your email for instant access to MERNA strategy notes, IRS red flag warnings, action steps, and implementation guide.

No spam · No obligation · Instant access
Retirement IRC §223 Uncle Kam Clients Only

HSA Triple Tax Advantage

Health Savings Accounts offer a triple tax advantage: contributions are tax-deductible, growth is tax-free, and withdrawals for qualified medical expenses are tax-free. The OBBBA also expanded HSA eligibility to include bronze and catastrophic plans starting 2026.

Eligibility Requirements
  • Enrolled in a High Deductible Health Plan (HDHP) or qualifying bronze/catastrophic plan (new for 2026)
  • Not enrolled in Medicare
  • Not claimed as a dependent on someone else's return
Example Savings Scenario

Contributing $8,750 (family) to an HSA in 2026 saves $3,237 in taxes at a 37% rate. Investing the balance for 20 years at 7% grows to $33,800+ tax-free.

Unlock the Full Strategy Breakdown — Free

Enter your email for instant access to MERNA strategy notes, IRS red flag warnings, action steps, and implementation guide.

No spam · No obligation · Instant access
Business IRC §199A Uncle Kam Clients Only

QBI Deduction — Section 199A (20% Pass-Through Deduction)

Pass-through business owners (sole props, S-Corps, LLCs, partnerships) can deduct up to 20% of qualified business income from taxable income. This is one of the largest tax breaks available to small business owners.

Eligibility Requirements
  • Own a pass-through business
  • Taxable income under $197,300 (single) or $394,600 (married) for full deduction
  • Specified service businesses (law, consulting, finance) phase out above these thresholds
Example Savings Scenario

A business owner with $200,000 in QBI at a 24% rate: 20% deduction = $40,000 reduction in taxable income = $9,600 in tax savings.

Unlock the Full Strategy Breakdown — Free

Enter your email for instant access to MERNA strategy notes, IRS red flag warnings, action steps, and implementation guide.

No spam · No obligation · Instant access
Self-Employed IRC §162 Uncle Kam Clients Only

Education & Professional Development Deduction

Deduct education expenses that maintain or improve skills required in your current trade or business, including courses, books, subscriptions, and professional conferences.

Eligibility Requirements
  • Education maintains or improves skills in current trade
  • Not required to meet minimum educational requirements for a new profession
  • Self-employed, freelancer, or business owner
Example Savings Scenario

Spending $5,000 on courses, conferences, and books deducts the full amount, saving $1,850 at a 37% rate.

Unlock the Full Strategy Breakdown — Free

Enter your email for instant access to MERNA strategy notes, IRS red flag warnings, action steps, and implementation guide.

No spam · No obligation · Instant access
Business IRC §172 Uncle Kam Clients Only

Net Operating Loss (NOL) Carryforward

When business deductions exceed income, the resulting net operating loss can be carried forward indefinitely to offset future taxable income, reducing taxes in profitable years.

Eligibility Requirements
  • Business or individual with deductions exceeding income
  • NOL from trade or business activities
  • Carried forward indefinitely (limited to 80% of taxable income per year)
Example Savings Scenario

A startup with $200,000 in NOL carries it forward. In Year 3 with $300,000 profit, the NOL offsets $200,000, saving $74,000 in taxes.

Unlock the Full Strategy Breakdown — Free

Enter your email for instant access to MERNA strategy notes, IRS red flag warnings, action steps, and implementation guide.

No spam · No obligation · Instant access
Business IRC §3134 Uncle Kam Clients Only

Employee Retention Credit (ERC)

A refundable payroll tax credit for businesses that retained employees during COVID-19 disruptions. Up to $5,000 per employee in 2020 and $21,000 per employee in 2021.

Eligibility Requirements
  • Had W-2 employees in 2020 or 2021
  • Experienced a significant decline in gross receipts OR government-ordered partial/full shutdown
  • Did not receive PPP loan forgiveness for the same wages (amended claims possible)
Example Savings Scenario

A restaurant with 20 employees that experienced a 50% revenue decline in Q2 2020 qualifies for up to $100,000 in ERC refunds for that quarter alone.

Unlock the Full Strategy Breakdown — Free

Enter your email for instant access to MERNA strategy notes, IRS red flag warnings, action steps, and implementation guide.

No spam · No obligation · Instant access
Business Expenses IRC §162 Uncle Kam Clients Only

Software & Subscription Deduction

Any software subscription or SaaS tool you pay for and use in your business is fully deductible in the year paid. This includes accounting software (QuickBooks, FreshBooks), design tools (Adobe Creative Cloud, Figma, Canva), communication tools (Zoom, Slack, Microsoft 365), project management tools (Asana, Monday.com), and any other business application.

Eligibility Requirements
  • Software used for business purposes
  • Self-employed, freelancer, or business owner
  • Annual or monthly subscription fees qualify
Example Savings Scenario

A freelance designer paying $600/year for Adobe Creative Cloud, $150 for Figma, and $200 for project management tools deducts $950/year, saving $285–$380.

Unlock the Full Strategy Breakdown — Free

Enter your email for instant access to MERNA strategy notes, IRS red flag warnings, action steps, and implementation guide.

No spam · No obligation · Instant access
Business Expenses IRC §162 Uncle Kam Clients Only

Coworking Space & Office Rent Deduction

If you rent a coworking space, shared office, or dedicated office for your business, the full cost is deductible. This includes WeWork, Regus, local coworking memberships, and any other office rental. Monthly membership fees, day passes, and dedicated desk or private office costs all qualify.

Eligibility Requirements
  • Coworking space or office used for business purposes
  • Self-employed, freelancer, or business owner
  • Monthly or annual fees paid for the space
Example Savings Scenario

A freelancer paying $400/month for a coworking membership deducts $4,800/year, saving $1,440–$1,920 in taxes.

Unlock the Full Strategy Breakdown — Free

Enter your email for instant access to MERNA strategy notes, IRS red flag warnings, action steps, and implementation guide.

No spam · No obligation · Instant access
Nurse IRC §162 Uncle Kam Clients Only

Scrubs, Stethoscope & Nursing Clinical Equipment

Nurses can deduct scrubs, nursing shoes (Dansko, Clogs), stethoscopes, pulse oximeters, penlight flashlights, bandage scissors, and other clinical equipment required for patient care.

Eligibility Requirements
  • Clothing or equipment is required by your employer or clinical setting
  • Items are not suitable for everyday wear (scrubs, clinical shoes)
  • Expenses are not reimbursed by your employer
  • Items are used exclusively for work
Example Savings Scenario

A nurse spending $600/year on scrubs, shoes, and equipment deducts the full amount, saving $222 in taxes at 37%.

Unlock the Full Strategy Breakdown — Free

Enter your email for instant access to MERNA strategy notes, IRS red flag warnings, action steps, and implementation guide.

No spam · No obligation · Instant access
Business IRC §179 Uncle Kam Clients Only

Section 179 Expensing

Immediately expense the full cost of qualifying business equipment, software, and certain vehicles in the year of purchase instead of depreciating over multiple years.

Eligibility Requirements
  • Business equipment, machinery, or software
  • Property placed in service during the tax year
  • Business income must be sufficient (cannot create a loss with §179)
Example Savings Scenario

Purchasing $500,000 in equipment. Full §179 deduction saves $185,000 in taxes at a 37% rate in Year 1 vs. spreading over 5–7 years.

Unlock the Full Strategy Breakdown — Free

Enter your email for instant access to MERNA strategy notes, IRS red flag warnings, action steps, and implementation guide.

No spam · No obligation · Instant access
Business IRC §73, §3121 Uncle Kam Clients Only

Hire Your Children in the Business

A sole proprietor or single-member LLC can hire their children under 18 and pay them wages up to the standard deduction amount ($14,600 in 2025) — the child pays no income tax and the business deducts the full amount.

Eligibility Requirements
  • Own a sole proprietorship or single-member LLC (not S-Corp for FICA exemption)
  • Children under 18 performing legitimate work
  • Paying reasonable wages for actual services rendered
Example Savings Scenario

A business owner in the 37% bracket paying two children $14,600 each: $29,200 in deductions saves $10,804 in federal taxes. Children owe $0 in income tax.

Unlock the Full Strategy Breakdown — Free

Enter your email for instant access to MERNA strategy notes, IRS red flag warnings, action steps, and implementation guide.

No spam · No obligation · Instant access
Business Expenses IRC §162 Uncle Kam Clients Only

Work Boots, Safety Gear & Protective Equipment Deduction

Protective clothing and safety equipment required for your trade or job site is fully deductible. This includes steel-toed work boots, hard hats, safety glasses, hearing protection, gloves, high-visibility vests, respirators, and any other OSHA-required or job-required safety gear. The key test: the gear must be required for the job and not suitable for everyday wear.

Eligibility Requirements
  • Safety gear required for your trade or job site
  • Not suitable for everyday personal use
  • Self-employed contractor or business owner
Example Savings Scenario

A contractor spending $600/year on work boots, gloves, safety glasses, and hard hats deducts the full amount, saving $180–$240 in taxes.

Unlock the Full Strategy Breakdown — Free

Enter your email for instant access to MERNA strategy notes, IRS red flag warnings, action steps, and implementation guide.

No spam · No obligation · Instant access
Business Expenses IRC §162 Uncle Kam Clients Only

MLS Fees, NAR Dues & Realtor Association Deduction

Real estate agents and brokers can deduct all professional membership fees and dues required to practice. This includes MLS access fees, National Association of Realtors (NAR) dues, state and local association dues, errors and omissions (E&O) insurance, and any other professional membership costs directly related to your real estate business.

Eligibility Requirements
  • Licensed real estate agent or broker
  • Self-employed (1099) real estate professional
  • Fees required to maintain MLS access or professional membership
Example Savings Scenario

A real estate agent paying $3,200/year in MLS fees, NAR dues, and E&O insurance deducts the full amount, saving $960–$1,280 in taxes.

Unlock the Full Strategy Breakdown — Free

Enter your email for instant access to MERNA strategy notes, IRS red flag warnings, action steps, and implementation guide.

No spam · No obligation · Instant access
Home Health Care Business IRC §199A Uncle Kam Clients Only

QBI Deduction (20% Pass-Through Deduction) for Home Care Agencies

Home health care businesses structured as sole proprietorships, partnerships, LLCs, or S-Corps may qualify for the Qualified Business Income (QBI) deduction under IRC §199A — a 20% deduction on net business income. For a home care agency generating $200,000 in net profit, this deduction alone saves $14,800 in federal taxes. Home health care is generally NOT classified as a Specified Service Trade or Business (SSTB), which means the income limitation phase-out that applies to doctors and lawyers typically does not apply — making this deduction available at higher income levels.

Eligibility Requirements
  • Home health care agency structured as LLC, S-Corp, or sole proprietor
  • Taxable income below $197,300 (single) or $394,600 (married) — full deduction
  • Income above thresholds: W-2 wage limitation applies
  • Home health care is generally NOT an SSTB — no income cap for most agencies
Example Savings Scenario

A home health care agency owner with $250,000 in net business income takes a $50,000 QBI deduction, saving $18,500 in federal taxes at 37%.

Unlock the Full Strategy Breakdown — Free

Enter your email for instant access to MERNA strategy notes, IRS red flag warnings, action steps, and implementation guide.

No spam · No obligation · Instant access
Home Health Care Business IRC §1361, §3111 Uncle Kam Clients Only

S-Corp Election for Home Health Care Business Owners

Home health care business owners operating as a sole proprietor or single-member LLC pay self-employment tax (15.3%) on 100% of net profit. By electing S-Corp status, the owner pays themselves a reasonable salary (subject to payroll taxes) and takes the remaining profit as distributions — which are NOT subject to self-employment tax. For a home care agency generating $200,000 in net profit, an S-Corp election typically saves $12,000–$20,000 per year in SE taxes alone.

Eligibility Requirements
  • Home health care business generating $40,000+ in net profit
  • Owner actively works in the business
  • Willing to run payroll and pay a reasonable salary
  • Entity structured as LLC or corporation
Example Savings Scenario

A home health care owner with $180,000 net profit pays a $75,000 reasonable salary and takes $105,000 as distributions, saving approximately $16,065 in self-employment taxes annually.

Unlock the Full Strategy Breakdown — Free

Enter your email for instant access to MERNA strategy notes, IRS red flag warnings, action steps, and implementation guide.

No spam · No obligation · Instant access
Real Estate IRC §280A(g) Uncle Kam Clients Only

Augusta Rule (Home Rental Exclusion)

Rent your personal home to your business for up to 14 days per year. The rental income is tax-free to you personally, and the business deducts the full rental expense.

Eligibility Requirements
  • Own a business (S-Corp, LLC, or sole prop)
  • Home rented for 14 days or fewer per year
  • Rental rate must be comparable to local market rates
  • Document with a rental agreement and business purpose
Example Savings Scenario

Renting your home to your S-Corp for 14 days at $2,000/day = $28,000 tax-free income to you, $28,000 deduction for the business, saving $10,360 in combined taxes.

Unlock the Full Strategy Breakdown — Free

Enter your email for instant access to MERNA strategy notes, IRS red flag warnings, action steps, and implementation guide.

No spam · No obligation · Instant access
Business IRC §45F Uncle Kam Clients Only

Employer-Provided Childcare Credit

Employers who provide or pay for childcare facilities for employees receive a tax credit of 25% of qualifying childcare expenditures and 10% of childcare resource and referral expenditures, up to $150,000/year.

Eligibility Requirements
  • Employer provides or pays for childcare facilities
  • Qualifying childcare expenditures for employees
  • Credit limited to $150,000 per year
Example Savings Scenario

An employer spending $500,000 on an on-site childcare facility receives a $125,000 tax credit (25%), plus the remaining $375,000 is deductible.

Unlock the Full Strategy Breakdown — Free

Enter your email for instant access to MERNA strategy notes, IRS red flag warnings, action steps, and implementation guide.

No spam · No obligation · Instant access
Business IRC §62(a)(2)(A), Reg. 1.62-2 Uncle Kam Clients Only

Accountable Plan Reimbursements

Establish a formal accountable plan to reimburse employees (including owner-employees) for business expenses tax-free. The business deducts the reimbursement; the employee pays no income or payroll tax on it.

Eligibility Requirements
  • Operate as an S-Corp, C-Corp, or partnership
  • Expenses have a business connection
  • Employee substantiates expenses and returns excess amounts
Example Savings Scenario

An S-Corp owner with $15,000 in home office, vehicle, and phone expenses reimburses through an accountable plan, saving $5,550 in combined income and payroll taxes.

Unlock the Full Strategy Breakdown — Free

Enter your email for instant access to MERNA strategy notes, IRS red flag warnings, action steps, and implementation guide.

No spam · No obligation · Instant access
Business IRC §831(b) Uncle Kam Clients Only

Captive Insurance Company

A business owner creates their own insurance company to insure business risks. Premiums paid to the captive are deductible by the business; the captive pays tax only on investment income under §831(b).

Eligibility Requirements
  • Business with $2M+ in annual revenue
  • Genuine insurable business risks
  • Captive receives $2.45M or less in premiums (§831(b) election)
  • Proper actuarial analysis and domicile compliance
Example Savings Scenario

A business paying $1.2M in captive premiums deducts the full amount, saving $444,000 at a 37% rate. The captive pays minimal tax on investment income.

Unlock the Full Strategy Breakdown — Free

Enter your email for instant access to MERNA strategy notes, IRS red flag warnings, action steps, and implementation guide.

No spam · No obligation · Instant access
Business IRC §162, §3121(b)(3) Uncle Kam Clients Only

Hiring Family Members in Your Business

Hire your children or spouse in your business to shift income to lower tax brackets. Children under 18 working for a sole proprietorship or partnership owned by parents are exempt from FICA taxes.

Eligibility Requirements
  • Sole proprietorship or partnership owned by parents
  • Children performing legitimate work for the business
  • Wages must be reasonable for the work performed
Example Savings Scenario

Paying a 16-year-old child $15,750/year (2026 standard deduction): $0 federal income tax for the child, $15,750 deduction for the business, saving $5,828 at a 37% rate.

Unlock the Full Strategy Breakdown — Free

Enter your email for instant access to MERNA strategy notes, IRS red flag warnings, action steps, and implementation guide.

No spam · No obligation · Instant access
Real Estate IRC §453 Uncle Kam Clients Only

Installment Sale

Spread the recognition of capital gains from a property sale over multiple years by receiving payments in installments, keeping annual income in lower tax brackets.

Eligibility Requirements
  • Selling real estate or business assets
  • Buyer agrees to pay over multiple years
  • Not dealer property or publicly traded securities
Example Savings Scenario

Selling a property with $600,000 in gains. Spreading over 6 years keeps you in the 15% capital gains bracket instead of 20%, saving $30,000+.

Unlock the Full Strategy Breakdown — Free

Enter your email for instant access to MERNA strategy notes, IRS red flag warnings, action steps, and implementation guide.

No spam · No obligation · Instant access
Business IRC §41 Uncle Kam Clients Only

Research & Development (R&D) Tax Credit

A dollar-for-dollar tax credit for qualified research expenses including wages, supplies, and contract research. Startups can apply up to $500,000/year against payroll taxes.

Eligibility Requirements
  • Conducting qualified research activities (new or improved products/processes)
  • Incurring qualified research expenses (wages, supplies, contract research)
  • Startups with < $5M revenue can apply against payroll taxes
Example Savings Scenario

A software company spending $500,000 on R&D wages qualifies for a $50,000–$100,000 federal tax credit, dollar-for-dollar against taxes owed.

Unlock the Full Strategy Breakdown — Free

Enter your email for instant access to MERNA strategy notes, IRS red flag warnings, action steps, and implementation guide.

No spam · No obligation · Instant access
Business IRC §179D Uncle Kam Clients Only

179D Energy-Efficient Commercial Building Deduction

Deduct up to $5.00 per square foot for energy-efficient improvements to commercial buildings, including HVAC, lighting, and building envelope upgrades.

Eligibility Requirements
  • Own or design commercial buildings
  • Building meets energy efficiency standards (ASHRAE)
  • Architects, engineers, and designers can claim on government buildings
Example Savings Scenario

A 50,000 sq ft commercial building with qualifying improvements generates $250,000 in deductions, saving $92,500 at a 37% rate.

Unlock the Full Strategy Breakdown — Free

Enter your email for instant access to MERNA strategy notes, IRS red flag warnings, action steps, and implementation guide.

No spam · No obligation · Instant access
Business IRC §164, State Law Uncle Kam Clients Only

Pass-Through Entity Tax (PTET) SALT Workaround

Many states allow S-Corps and partnerships to elect to pay state income tax at the entity level, generating a federal deduction that bypasses the $10,000 SALT cap for individual owners.

Eligibility Requirements
  • S-Corp or partnership in a state with a PTET election
  • Owners subject to state income tax on pass-through income
  • Election made at the entity level by the state deadline
Example Savings Scenario

An S-Corp owner in California paying $50,000 in state income tax: PTET election moves $40,000 above the SALT cap to a federal deduction, saving $14,800 at a 37% rate.

Unlock the Full Strategy Breakdown — Free

Enter your email for instant access to MERNA strategy notes, IRS red flag warnings, action steps, and implementation guide.

No spam · No obligation · Instant access
Estate Planning IRC §2512, §2036 Uncle Kam Clients Only

Family Limited Partnership (FLP)

A Family Limited Partnership allows transfer of assets to family members at a valuation discount (typically 20–40%) due to lack of control and marketability, reducing estate and gift tax exposure.

Eligibility Requirements
  • Estate value over $5 million
  • Own a business, real estate portfolio, or investment assets
  • Want to transfer wealth to heirs while maintaining control
Example Savings Scenario

A $10M real estate portfolio transferred via FLP at a 35% discount reduces the taxable estate by $3.5M, saving $1.4M in estate taxes at a 40% rate.

Unlock the Full Strategy Breakdown — Free

Enter your email for instant access to MERNA strategy notes, IRS red flag warnings, action steps, and implementation guide.

No spam · No obligation · Instant access
What Most Home Health Cares Don't Know

Most taxpayers leave the QBI deduction unclaimed — it reduces taxable income by up to 23% starting 2026 under the OBBBA.

HSA contributions offer a triple tax advantage — deductible, tax-free growth, tax-free withdrawals.

Charitable donations of appreciated stock avoid capital gains AND generate a full fair-market-value deduction.

Who Uses This Strategy

This write-off is commonly used by the following taxpayer profiles. Click to see all strategies for your situation.

Common Questions for Home Health Cares

Get answers to the most frequently asked tax questions for your profession.

What tax deductions can a home health care provider claim?
Home health care providers can deduct medical supplies, uniforms, vehicle mileage (driving to patients), continuing education, professional licenses, liability insurance, and home office. Most providers miss $8,000\u2013$20,000 in deductions.
Can a home health care provider deduct vehicle mileage?
Yes. Driving between patient homes is deductible at 70 cents/mile (2026 standard mileage rate). Home health care providers typically drive 15,000\u201330,000 business miles/year, generating $10,500\u2013$21,000 in mileage deductions.
Should a home health care provider form an S-Corp?
Yes \u2014 providers earning $60,000+ save $5,000\u2013$15,000/year with an S-Corp election. However, some states restrict healthcare providers from forming S-Corps \u2014 a professional corporation (PC) or PLLC may be required.
What is the QBI deduction for home health care providers?
Home health care services may qualify for the 20% QBI deduction if structured as a business. On $100,000 of net income, this saves $4,400\u2013$7,400 in federal taxes. Consult a tax professional to confirm your service qualifies.
Can a home health care provider deduct continuing education?
Yes \u2014 all continuing education, certifications, and training required to maintain your license or improve your skills are fully deductible as business expenses.
0
0 write-offs saved
Tap to view your list

Your Biggest Missed Deduction Is Probably Locked Above

Uncle Kam clients save an average of $5,000–$40,000/year. The strategies that make that possible are unlocked on a free strategy call.

Book A Free Strategy Call Free consultation. No obligation.
';// ── Open in a new window and print ─────────────────────────────── var win = window.open('', '_blank', 'width=850,height=700,scrollbars=yes,noopener=0'); if (!win) { // Fallback: inject an iframe for printing if popup is blocked var iframe = document.createElement('iframe'); iframe.style.cssText = 'position:fixed;top:-9999px;left:-9999px;width:850px;height:700px;border:0;'; document.body.appendChild(iframe); iframe.contentDocument.open(); iframe.contentDocument.write(html); iframe.contentDocument.close(); setTimeout(function() { iframe.contentWindow.focus(); iframe.contentWindow.print(); setTimeout(function() { document.body.removeChild(iframe); }, 2000); }, 600); return; } win.document.open(); win.document.write(html); win.document.close(); win.focus(); setTimeout(function() { win.print(); }, 600); }// ── Email Unlock: post to GHL silently, expand locked cards ────────────── function ukwfUnlockStrategies(e) { e.preventDefault(); // Support both the main wall form AND per-card gate forms var form = e ? e.target : null; var gateInput = form ? form.querySelector('.ukwf-gate-email-input') : null; var mainInput = document.getElementById('ukwf-unlock-email'); var emailInput = (gateInput && gateInput.value.trim()) ? gateInput : mainInput; var errorEl = document.getElementById('ukwf-unlock-error'); var email = emailInput ? emailInput.value.trim() : ''; // Also check the gate input if main is empty if (!email && gateInput) email = gateInput.value.trim(); // Basic email validation if (!email || !/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(email)) { if (errorEl) errorEl.style.display = 'block'; if (gateInput) { gateInput.style.borderColor = '#ff6b6b'; gateInput.focus(); } else if (emailInput) emailInput.focus(); return; } if (errorEl) errorEl.style.display = 'none'; if (gateInput) gateInput.style.borderColor = ''; // Disable all unlock buttons document.querySelectorAll('.ukwf-email-unlock-btn, .ukwf-gate-email-btn').forEach(function(b) { b.disabled = true; b.textContent = 'Unlocking...'; }); // Send lead to GHL via server-side PHP AJAX (bypasses webhook workflow) var professionEl = document.querySelector('.ukwf-profile-name'); var professionName = professionEl ? professionEl.textContent.trim().replace(/\s*Tax Write-Offs\s*&?\s*Deductions\s*$/i, '').trim() : ''; var nameParts = professionName.split('/'); var ghlFirstName = nameParts[0] ? nameParts[0].trim() : professionName; var ghlLastName = nameParts[1] ? nameParts[1].trim() : 'Tax Write-Off Finder'; var ajaxUrl = (typeof ukwfConfig !== 'undefined' && ukwfConfig.ajaxUrl) ? ukwfConfig.ajaxUrl : '/wp-admin/admin-ajax.php'; var nonce = (typeof ukwfConfig !== 'undefined' && ukwfConfig.leadNonce) ? ukwfConfig.leadNonce : ''; var formData = new FormData(); formData.append('action', 'ukwf_ghl_lead'); formData.append('nonce', nonce); formData.append('email', email); formData.append('firstName', ghlFirstName); formData.append('lastName', ghlLastName); formData.append('profession', professionName); formData.append('source', 'ukwf-unlock'); formData.append('page', window.location.pathname); fetch(ajaxUrl, { method: 'POST', body: formData }).catch(function() {}); // fire-and-forget // Expand all locked cards immediately ukwfDoUnlock(); } function ukwfDoUnlock() { // Hide the email wall var wall = document.getElementById('ukwf-email-unlock-wall'); if (wall) { wall.style.transition = 'opacity 0.3s ease'; wall.style.opacity = '0'; setTimeout(function() { wall.style.display = 'none'; }, 300); } // Unlock all locked cards instantly — no stagger (stagger caused 4+ second delay for 70+ cards) var lockedCards = document.querySelectorAll('.ukwf-result-card--locked'); lockedCards.forEach(function(card) { // Remove locked state — keep collapsed so user can open each card individually card.classList.remove('ukwf-result-card--locked'); card.classList.add('ukwf-result-card--open'); // Clear any inline styles that might block the toggle var body = card.querySelector('.ukwf-result-body'); if (body) { body.style.display = ''; body.style.maxHeight = ''; } // Remove lock badge var badge = card.querySelector('.ukwf-result-lock-badge'); if (badge) badge.style.display = 'none'; // Replace the locked gate with an unlocked badge var gate = card.querySelector('.ukwf-locked-strategy-gate'); if (gate) { gate.innerHTML = '
Unlocked — tap to expand
'; } }); // Show success banner var banner = document.getElementById('ukwf-unlock-banner'); if (banner) { banner.style.display = 'flex'; } // Persist unlock in localStorage so it survives refresh, tab close, and navigation // Uses the same ukwfSetUnlocked() that the book-call path uses, which sets // localStorage key 'ukwf_unlocked' = '1'. The main script block already checks // ukwfIsUnlocked() on page load and calls ukwfUnlockAll() automatically. if (typeof ukwfSetUnlocked === 'function') { ukwfSetUnlocked(); } else { try { localStorage.setItem('ukwf_unlocked', '1'); } catch(err) {} } // Also run the main unlock function to handle any card variants we might miss if (typeof ukwfUnlockAll === 'function') { ukwfUnlockAll(); } } // NOTE: Auto-unlock on page load is handled by the main script block which // checks ukwfIsUnlocked() and calls ukwfUnlockAll(). No DOMContentLoaded // listener needed here (it was broken anyway because LiteSpeed defers scripts // past DOMContentLoaded)./* ── Sticky Save Bar ───────────────────────────────────────────────── */ (function() { var SAVED_KEY = 'ukwf_saved_v2'; var bar = document.getElementById('ukwf-sticky-save-bar'); var countEl = document.getElementById('ukwf-sticky-save-count'); var badgeEl = document.getElementById('ukwf-sticky-cart-badge'); var savingsWrap = document.getElementById('ukwf-sticky-save-savings'); var savingsRange = document.getElementById('ukwf-sticky-savings-range'); if (!bar || !countEl) return;var _prevCount = 0;/* Parse a savings string like "$1,200–$4,500/year" -> {min, max} */ function parseSavings(str) { if (!str) return null; var nums = str.replace(/[^0-9]/g, ' ').trim().split(/\s+/).filter(Boolean); var vals = nums.map(function(n) { return parseInt(n, 10); }).filter(function(n) { return !isNaN(n) && n > 0; }); if (vals.length === 0) return null; if (vals.length === 1) return { min: vals[0], max: vals[0] }; return { min: Math.min.apply(null, vals), max: Math.max.apply(null, vals) }; }/* Format a number as $XK or $X.XM */ function fmtMoney(n) { if (n >= 1000000) return '$' + (n / 1000000).toFixed(1).replace(/\.0$/, '') + 'M'; if (n >= 1000) return '$' + Math.round(n / 1000) + 'K'; return '$' + n.toLocaleString(); }/* Animated count-up for a single element */ function animateCount(el, from, to, duration) { if (from === to) { el.textContent = to; return; } var start = null; function step(ts) { if (!start) start = ts; var progress = Math.min((ts - start) / duration, 1); var ease = 1 - Math.pow(1 - progress, 3); el.textContent = Math.round(from + (to - from) * ease); if (progress < 1) requestAnimationFrame(step); else el.textContent = to; } requestAnimationFrame(step); }function getSaved() { try { return JSON.parse(localStorage.getItem(SAVED_KEY) || '[]'); } catch(e) { return []; } }function updateBar() { var saved = getSaved(); var n = saved.length;/* Count-up animation when count changes */ if (n !== _prevCount) { animateCount(countEl, _prevCount, n, 600); if (badgeEl) animateCount(badgeEl, _prevCount, n, 600); /* Pop animation on bar when count increases */ if (n > _prevCount) { bar.classList.remove('ukwf-sticky-bar-pop'); void bar.offsetWidth; bar.classList.add('ukwf-sticky-bar-pop'); } _prevCount = n; }if (n > 0) { bar.classList.add('ukwf-sticky-save-bar--visible');/* Calculate total savings range */ var totalMin = 0, totalMax = 0, hasSavings = false; saved.forEach(function(item) { var p = parseSavings(item.savings || ''); if (p) { totalMin += p.min; totalMax += p.max; hasSavings = true; } });if (hasSavings && savingsWrap && savingsRange) { var rangeStr = totalMin === totalMax ? fmtMoney(totalMin) : fmtMoney(totalMin) + '–' + fmtMoney(totalMax); savingsRange.textContent = rangeStr; savingsWrap.style.display = ''; } else if (savingsWrap) { savingsWrap.style.display = 'none'; } } else { bar.classList.remove('ukwf-sticky-save-bar--visible'); if (savingsWrap) savingsWrap.style.display = 'none'; } }/* Update whenever a save/unsave happens */ window.addEventListener('ukwfSavedChanged', updateBar); /* Cross-tab sync */ window.addEventListener('storage', function(e) { if (e.key === SAVED_KEY) updateBar(); }); /* Expose globally */ window.ukwfStickyBarRefresh = updateBar; updateBar(); })();/* ── CART DRAWER ────────────────────────────────────────────────────── */ (function() { var SAVED_KEY = 'ukwf_saved_v2'; var drawer = document.getElementById('ukwf-cart-drawer'); var overlay = document.getElementById('ukwf-cart-overlay'); var itemsList = document.getElementById('ukwf-cart-items'); var emptyEl = document.getElementById('ukwf-cart-empty'); var footerEl = document.getElementById('ukwf-cart-footer'); var savingsStrip = document.getElementById('ukwf-cart-savings-strip'); var savingsAmount = document.getElementById('ukwf-cart-savings-amount'); var headerSub = document.getElementById('ukwf-cart-header-sub'); var footerCount = document.getElementById('ukwf-cart-footer-count'); if (!drawer) return;function getSaved() { try { return JSON.parse(localStorage.getItem(SAVED_KEY) || '[]'); } catch(e) { return []; } } function setSaved(arr) { localStorage.setItem(SAVED_KEY, JSON.stringify(arr)); window.dispatchEvent(new CustomEvent('ukwfSavedChanged')); if (typeof window.ukwfStickyBarRefresh === 'function') window.ukwfStickyBarRefresh(); if (typeof window.ukwfSavedBadgeRefresh === 'function') window.ukwfSavedBadgeRefresh(); } function parseSavings(str) { if (!str) return null; var nums = str.replace(/[^0-9]/g, ' ').trim().split(/\s+/).filter(Boolean); var vals = nums.map(function(n){ return parseInt(n,10); }).filter(function(n){ return !isNaN(n) && n > 0; }); if (!vals.length) return null; if (vals.length === 1) return { min: vals[0], max: vals[0] }; return { min: Math.min.apply(null,vals), max: Math.max.apply(null,vals) }; } function fmtMoney(n) { if (n >= 1000000) return '$' + (n/1000000).toFixed(1).replace(/\.0$/,'') + 'M'; if (n >= 1000) return '$' + Math.round(n/1000) + 'K'; return '$' + n.toLocaleString(); } function getCatIcon(cat) { var icons = { 'vehicle':'', 'home':'', 'travel':'', 'equipment':'', 'health':'', 'retirement':'', 'education':'', 'real estate':'' }; var k = (cat || '').toLowerCase(); for (var key in icons) { if (k.indexOf(key) !== -1) return icons[key]; } return ''; } function renderItems() { var saved = getSaved(); var n = saved.length; /* Update header sub */ if (headerSub) headerSub.textContent = n + ' deduction' + (n !== 1 ? 's' : '') + ' saved'; /* Show/hide empty state */ if (emptyEl) emptyEl.style.display = n === 0 ? '' : 'none'; if (footerEl) footerEl.style.display = n === 0 ? 'none' : ''; /* Savings strip */ var totalMin = 0, totalMax = 0, hasSavings = false; saved.forEach(function(item) { var p = parseSavings(item.savings || ''); if (p) { totalMin += p.min; totalMax += p.max; hasSavings = true; } }); if (hasSavings && savingsStrip) { savingsStrip.style.display = ''; var rangeStr = totalMin === totalMax ? fmtMoney(totalMin) : fmtMoney(totalMin) + ' – ' + fmtMoney(totalMax); if (savingsAmount) savingsAmount.textContent = rangeStr; } else if (savingsStrip) { savingsStrip.style.display = 'none'; } /* Footer count */ if (footerCount) footerCount.textContent = n > 0 ? n + ' write-off' + (n !== 1 ? 's' : '') + ' in your list' : ''; /* Remove existing items (keep empty state) */ var existing = itemsList ? itemsList.querySelectorAll('.ukwf-cart-item') : []; existing.forEach(function(el) { el.parentNode.removeChild(el); }); /* Render each item */ saved.forEach(function(item, idx) { var div = document.createElement('div'); div.className = 'ukwf-cart-item'; div.style.animationDelay = (idx * 0.04) + 's'; div.innerHTML = '
' + getCatIcon(item.category) + '
' + '
' + '
' + escHtml(item.name || item.slug) + '
' + (item.category ? '
' + escHtml(item.category) + '
' : '') + (item.savings ? '
' + escHtml(item.savings) + '/yr
' : '') + '
' + ''; /* Remove button handler */ div.querySelector('.ukwf-cart-item-remove').addEventListener('click', function() { var slug = this.getAttribute('data-slug'); var arr = getSaved().filter(function(i){ return i.slug !== slug; }); setSaved(arr); /* Animate out */ div.style.transition = 'opacity 0.18s, transform 0.18s'; div.style.opacity = '0'; div.style.transform = 'translateX(20px)'; setTimeout(function() { renderItems(); }, 180); /* Also update save buttons on page */ document.querySelectorAll('.ukwf-card-save-btn[data-slug="' + slug + '"]').forEach(function(btn) { btn.classList.remove('ukwf-card-save-btn--saved'); btn.setAttribute('aria-pressed','false'); var lbl = btn.querySelector('.ukwf-card-save-label'); if (lbl) lbl.textContent = 'Save'; }); }); if (itemsList) itemsList.appendChild(div); }); } function escHtml(s) { return String(s).replace(/&/g,'&').replace(//g,'>').replace(/"/g,'"'); } function escAttr(s) { return String(s).replace(/"/g,'"').replace(/'/g,'''); } /* Open / close */ window.ukwfCartDrawerOpen = function() { renderItems(); if (drawer) drawer.classList.add('ukwf-cart-drawer--open'); if (overlay) overlay.classList.add('ukwf-cart-overlay--open'); document.body.style.overflow = 'hidden'; }; window.ukwfCartDrawerClose = function() { if (drawer) drawer.classList.remove('ukwf-cart-drawer--open'); if (overlay) overlay.classList.remove('ukwf-cart-overlay--open'); document.body.style.overflow = ''; }; window.ukwfCartClearAll = function() { if (!confirm('Remove all saved write-offs?')) return; setSaved([]); renderItems(); }; /* Keyboard close */ document.addEventListener('keydown', function(e) { if (e.key === 'Escape' && drawer && drawer.classList.contains('ukwf-cart-drawer--open')) { window.ukwfCartDrawerClose(); } }); /* Re-render when saves change */ window.addEventListener('ukwfSavedChanged', function() { if (drawer && drawer.classList.contains('ukwf-cart-drawer--open')) { renderItems(); } }); window.addEventListener('storage', function(e) { if (e.key === SAVED_KEY && drawer && drawer.classList.contains('ukwf-cart-drawer--open')) { renderItems(); } }); })();/* ── CARD SAVE BUTTONS ──────────────────────────────────────────────── */ (function() { var SAVED_KEY = 'ukwf_saved_v2';function getSaved() { try { return JSON.parse(localStorage.getItem(SAVED_KEY) || '[]'); } catch(e) { return []; } } function setSaved(arr) { localStorage.setItem(SAVED_KEY, JSON.stringify(arr)); } function isSaved(slug) { return getSaved().some(function(i) { return i.slug === slug; }); } function updateBtn(btn) { var slug = btn.getAttribute('data-slug'); var saved = isSaved(slug); btn.classList.toggle('ukwf-card-save-btn--saved', saved); btn.setAttribute('aria-pressed', saved ? 'true' : 'false'); var label = btn.querySelector('.ukwf-card-save-label'); if (label) label.textContent = saved ? 'Saved' : 'Save'; } function initAllBtns() { document.querySelectorAll('.ukwf-card-save-btn').forEach(function(btn) { updateBtn(btn); btn.addEventListener('click', function(e) { e.stopPropagation(); var slug = btn.getAttribute('data-slug'); var name = btn.getAttribute('data-name'); var cat = btn.getAttribute('data-category') || ''; var savings = btn.getAttribute('data-savings') || ''; var saved = getSaved(); var idx = saved.findIndex(function(i) { return i.slug === slug; }); if (idx === -1) { saved.push({ slug: slug, name: name, category: cat, savings: savings, savedAt: Date.now() }); } else { saved.splice(idx, 1); } setSaved(saved); updateBtn(btn); /* Sync badge and sticky bar */ window.dispatchEvent(new CustomEvent('ukwfSavedChanged')); if (typeof window.ukwfSavedBadgeRefresh === 'function') window.ukwfSavedBadgeRefresh(); if (typeof window.ukwfStickyBarRefresh === 'function') window.ukwfStickyBarRefresh(); }); }); } /* Init on load and re-sync on saved changes from autocomplete */ if (document.readyState === 'loading') { document.addEventListener('DOMContentLoaded', initAllBtns); } else { initAllBtns(); } window.addEventListener('ukwfSavedChanged', function() { document.querySelectorAll('.ukwf-card-save-btn').forEach(updateBtn); }); })();