How LLC Owners Save on Taxes in 2026

Taxpayer Find more write-offs — search your profession or a specific deduction
Try:
Others Also Use These Strategies
Technology IRC §162

Social Media Manager Tools & Software Deduction

Social media managers can deduct all scheduling and management tools: Hootsuite ($1,188/yr), Buffer ($120/yr), Sprout Social ($2,388/yr), Later ($180/yr), and any analytics platforms. Also deduct Canva Pro ($120/yr), Adobe Creative Cloud ($660/yr), and stock photo subscriptions. These are fully deductible under IRC §162 as ordinary and necessary business expenses.

Eligibility Requirements
  • Must be a self-employed social media manager
  • Software must be used for client work or business operations
  • Subscriptions are deducted as current-year expenses
  • Must report income on Schedule C
Example Savings Scenario

A social media manager paying $1,800/year for Hootsuite, $600 for Canva Pro, $480 for Later, $240 for Sprout Social, and $360 for analytics tools deducts $3,480, saving $1,288 at 37%.

MERNA Strategy Notes

Social media managers rely on scheduling and analytics tools that are fully deductible. Social media scheduling tools (Hootsuite $99-$739/month, Buffer $6-$120/month, Later $18-$80/month, Sprout Social $249-$499/month), design tools (Canva Pro $12.99/month, Adobe Creative Cloud), analytics tools (Iconosquare, Keyhole, Brandwatch), and client management tools (Dubsado, HoneyBook) are all deductible.

Common Mistake: Software used for personal social media use is not deductible. Only tools used for client work or business operations are deductible.
Business Expenses IRC §162 Uncle Kam Clients Only

Advertising & Marketing Deduction

All costs of advertising and promoting your business are fully deductible. This includes Google Ads, Facebook and Instagram ads, business cards, flyers, brochures, signage, website design and hosting, domain names, email marketing tools (Mailchimp, Klaviyo), and any other promotional expenses.

Eligibility Requirements
  • Advertising directly promotes your business
  • Self-employed, freelancer, or business owner
  • Expenses paid in the tax year
Example Savings Scenario

A real estate agent spending $8,000/year on Facebook ads, business cards, and listing photography 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 IRC §274 Uncle Kam Clients Only

Business Meals Deduction

Deduct 50% of the cost of business meals where there is a genuine business discussion. The meal must not be lavish, and the business purpose must be documented.

Eligibility Requirements
  • Meal has a bona fide business purpose
  • Business is discussed before, during, or after the meal
  • Document: who, what business discussed, date, amount
Example Savings Scenario

Spending $20,000/year on business meals = $10,000 deduction, saving $3,700 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 §162 Uncle Kam Clients Only

Business Travel Deduction

Deduct ordinary and necessary travel expenses when traveling away from home for business, including transportation, lodging, and 50% of meals.

Eligibility Requirements
  • Travel away from your tax home for business
  • Travel requires sleep or rest (overnight trip)
  • Primary purpose of the trip is business
Example Savings Scenario

A business owner spending $15,000/year on travel (flights, hotels, meals) deducts $13,500 (meals at 50%), saving $4,995 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 §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
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
Digital Marketing IRC §162 Uncle Kam Clients Only

Course Creation & Content Production Costs

If you create online courses, digital products, or content as part of your marketing business, all production costs are deductible — video equipment, microphones, lighting, green screens, editing software (Final Cut Pro, Adobe Premiere), course platform fees (Teachable, Kajabi, Thinkific), graphic design, and freelance video editors or scriptwriters.

Eligibility Requirements
  • Digital marketer creating online courses or digital products
  • Content creator using video or audio production equipment
  • Paying course platform fees or freelance production costs
Example Savings Scenario

A course creator who spends $5,000 on video equipment, $3,000 on editing software, $2,400 in platform fees, and $4,000 on a video editor deducts $14,400 — saving $3,600 at a 25% 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 §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 OBBBA 2025 — New IRC Provision Uncle Kam Clients Only 2026 Law Update

Tip Income Tax Deduction (OBBBA 2026)

The One Big Beautiful Bill Act (OBBBA) creates a new deduction allowing workers in tip-based industries to exclude qualifying tip income from federal taxable income. This is one of the most significant new deductions for service industry workers in decades.

Eligibility Requirements
  • Work in a tip-based industry (restaurant, hospitality, beauty, delivery)
  • Tips received in the ordinary course of employment
  • Employer must report tips correctly on W-2 or 1099
  • Applies to tax years beginning after December 31, 2025
Example Savings Scenario

A restaurant server earning $20,000/year in tips at a 22% federal rate saves $4,400/year in federal income taxes under the new tip income deduction.

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

Copywriter Home Office & Research Deduction

Copywriters working from home can deduct their dedicated home office space, all research materials (books, industry reports, subscriptions), and any databases or research tools used for client work. A copywriter spending $2,000 on industry research, competitor analysis tools, and reference materials deducts the full amount. Also deduct Grammarly, Hemingway, and writing software subscriptions.

Eligibility Requirements
  • Must be a self-employed copywriter or content writer
  • Must use a dedicated space in your home exclusively and regularly for writing
  • Research costs must be for copywriting work that generates income
  • Must report income on Schedule C
Example Savings Scenario

A freelance copywriter using 12% of their home for writing deducts $2,400/year in home office expenses, plus $1,200 in research and reference materials, saving $1,332 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 §162 Uncle Kam Clients Only

LLC Owner Operating Expense & Business Deduction Strategy

LLC owners can deduct all ordinary and necessary business expenses: rent, utilities, payroll, contractor costs, software, marketing, travel, and professional services. A single-member LLC reports these on Schedule C; a multi-member LLC files Form 1065. Keep all receipts and use a dedicated business bank account to make deduction tracking simple and audit-proof.

Eligibility Requirements
  • Must own an LLC with business income
  • Expenses must be ordinary and necessary for the LLC business
  • Must have documentation (receipts, invoices, bank statements)
  • Personal expenses are not deductible - only business-use portion
Example Savings Scenario

An LLC owner deducting $25,000 in operating expenses (home office, vehicle, software, professional fees, marketing) reduces taxable income by $25,000, saving $9,250 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

LLC Owner QBI Deduction (20% Pass-Through Deduction)

LLC owners who are pass-through entities can deduct up to 20% of qualified business income (QBI) under Section 199A — worth $10,000–$40,000 per year for profitable LLCs. The deduction phases out for specified service businesses above income thresholds. LLC owners with W-2 employees or significant property can maximize the deduction above the threshold using wage and property limitations.

Eligibility Requirements
  • Must have qualified business income from a pass-through entity (LLC, sole prop, S-Corp, partnership)
  • Deduction is 20% of qualified business income (QBI)
  • Income limits apply: $191,950 (single) or $383,900 (married) in 2024
  • Specified service trades (law, accounting, health, financial services) have additional limits
Example Savings Scenario

An LLC owner with $100,000 in QBI deducts $20,000 (20% of $100,000) on Form 1040, saving $7,400 at 37% - without any additional spending required.

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

Coach & Consultant Home Office Deduction

Coaches and consultants who work from home can deduct the portion of their home used exclusively and regularly for business. A dedicated coaching office in a 2,000 sq ft home (200 sq ft office) yields a 10% deduction of all home expenses — typically $3,000–$8,000 per year. Also deduct Zoom, Calendly, coaching platforms, and all client communication tools.

Eligibility Requirements
  • Must use a dedicated space in your home exclusively and regularly for coaching/consulting
  • Must be your principal place of business or where you meet clients virtually
  • Space does not need to be a separate room - a dedicated desk area qualifies
  • Must report income on Schedule C
Example Savings Scenario

A life coach using 15% of their home for coaching sessions deducts $3,750/year (15% of $25,000 in home expenses), saving $1,388 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 §280A Uncle Kam Clients Only

Business Consultant Home Office & Professional Setup Deduction

Business consultants working from home can deduct the home office space used exclusively for client work and business activities. A 300 sq ft office in a 2,500 sq ft home yields a 12% deduction of all home expenses — typically $4,000–$10,000 per year. Also deduct all office equipment, furniture, and technology used for consulting work under Section 179.

Eligibility Requirements
  • Must be a self-employed business or management consultant
  • Must use a dedicated space in your home exclusively and regularly for consulting
  • Equipment must be used for consulting work that generates income
  • Must report income on Schedule C
Example Savings Scenario

A business consultant using 15% of their home for consulting deducts $4,500/year in home office expenses, plus $3,000 in equipment, saving $2,775 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 §280A Uncle Kam Clients Only

Photographer Studio & Home Office Deduction

Photographers can deduct a dedicated home studio space used exclusively for photography work — shooting, editing, and client meetings. A 400 sq ft studio in a 2,000 sq ft home yields a 20% deduction of all home expenses — typically $4,000–$10,000 per year. Also deduct editing software (Adobe Lightroom, Photoshop, Capture One), cloud storage, and gallery delivery platforms (Pixieset, ShootProof).

Eligibility Requirements
  • Must be a self-employed photographer
  • Studio must be used exclusively and regularly for photography business
  • Home studio qualifies if used exclusively for photography sessions or editing
  • Must report income on Schedule C
Example Savings Scenario

A photographer using 20% of their home as a studio deducts $5,000/year in home studio expenses, saving $1,850 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 §162 Uncle Kam Clients Only

Teacher Side Tutoring & Course Income Business Deductions

Teachers who tutor privately on the side have self-employment income and can deduct all related business expenses: tutoring materials, curriculum subscriptions, home office space used exclusively for tutoring sessions, vehicle mileage to student locations, and a portion of their phone and internet. A teacher earning $10,000 in tutoring income can often offset $3,000–$5,000 with legitimate deductions.

Eligibility Requirements
  • Must have side income from tutoring, online courses, or educational consulting
  • Income must be reported on Schedule C as self-employment income
  • Expenses must be ordinary and necessary for the tutoring/teaching business
  • Must have documentation of expenses
Example Savings Scenario

A teacher with $20,000 in tutoring income deducting $4,000 in home office, materials, platform fees, and marketing saves $1,480 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 §280A Uncle Kam Clients Only

Bookkeeper Home Office & Vehicle Deduction

Bookkeepers working from home can deduct the home office space used exclusively for client work — typically worth $1,500–$4,000 per year using the actual expense method. Vehicle mileage to client offices, bank runs, and networking events is deductible at 70 cents per mile. A bookkeeper driving 5,000 business miles deducts $3,500.

Eligibility Requirements
  • Must use a dedicated space in your home exclusively and regularly for bookkeeping
  • Vehicle must be used for business purposes (client meetings, bank runs)
  • Must report income on Schedule C
  • Must have documentation of business use
Example Savings Scenario

A freelance bookkeeper using 12% of their home for bookkeeping deducts $2,400/year in home office expenses, plus $2,010 in vehicle mileage (3,000 miles x $0.67), saving $1,633 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 §162 Uncle Kam Clients Only

Coach & Consultant Program Development & Course Creation Deduction

The cost of developing coaching programs, courses, and client materials is fully deductible. This includes course creation software (Kajabi, Teachable, Thinkific), graphic design tools (Canva Pro), video editing software, and professional photography for marketing materials. A coach spending $5,000 building a signature program deducts the full amount in the year incurred.

Eligibility Requirements
  • Must be creating coaching programs or consulting deliverables for business income
  • Development costs must be for business purposes
  • Software and tools used for course creation are deductible
  • Must report income on Schedule C
Example Savings Scenario

A business coach spending $8,000 on course platform (Kajabi), $3,600 on video production, $2,400 on graphic design, and $1,200 on copywriting deducts $15,200, saving $5,624 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 §280A Uncle Kam Clients Only

Virtual Assistant Home Office & Equipment Deduction

Virtual assistants working from home can deduct the home office space used exclusively for client work — typically $1,500–$4,000 per year. Also deduct computer equipment, monitors, keyboards, headsets, and any hardware used for client work under Section 179. A VA spending $3,000 on a new MacBook and monitor setup deducts the full amount in the year purchased.

Eligibility Requirements
  • Must be a self-employed virtual assistant
  • Must use a dedicated space in your home exclusively and regularly for VA work
  • Equipment must be used for VA work that generates income
  • Must report income on Schedule C
Example Savings Scenario

A virtual assistant using 10% of their home for work deducts $2,000/year in home office expenses, plus $1,500 in laptop and equipment, saving $1,295 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 §162 Uncle Kam Clients Only

House Flipper Contractor Labor & Renovation Cost Deduction

House flippers can deduct all contractor labor costs, subcontractor fees, and renovation materials as cost of goods sold (COGS) when the property sells. This includes GC fees, plumbing, electrical, HVAC, roofing, flooring, and any other renovation costs. Proper documentation of all contractor payments (1099-NEC for payments over $600) is essential to protect these deductions.

Eligibility Requirements
  • Must be actively flipping houses as a business
  • Contractor labor must be for renovation of flip properties
  • Must issue 1099-NEC to contractors paid $600+ per year
  • Must track all renovation costs per property
Example Savings Scenario

A house flipper spending $45,000 on contractor labor for a flip deducts the full amount as COGS, reducing taxable profit from $80,000 to $35,000, saving $16,650 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 §280A Uncle Kam Clients Only

Freelancer Home Office Deduction

Freelancers working from home can deduct the home office space used exclusively and regularly for business. The simplified method allows $5 per square foot (max 300 sq ft = $1,500 deduction). The actual expense method — deducting a percentage of rent, utilities, insurance, and internet — typically yields $3,000–$8,000 per year for most freelancers.

Eligibility Requirements
  • Must be a self-employed freelancer or independent contractor
  • Must use a dedicated space in your home exclusively and regularly for freelance work
  • Space must be your principal place of business
  • Must report income on Schedule C
Example Savings Scenario

A freelancer using 12% of their home for work deducts $2,400/year in home office expenses, saving $888 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 §280A Uncle Kam Clients Only

Attorney Home Office & Law Library Deduction

Attorneys working from home can deduct their home office space and all law library expenses: Westlaw ($3,000–$10,000/yr), LexisNexis ($2,000–$8,000/yr), Casetext ($1,200/yr), and physical law books. A solo attorney spending $5,000/year on legal research databases deducts the full amount. Also deduct practice management software (Clio, MyCase, PracticePanther).

Eligibility Requirements
  • Must be a self-employed attorney or solo practitioner
  • Must use a dedicated space in your home exclusively and regularly for law practice
  • Law library and research materials must be for legal work
  • Must report income on Schedule C
Example Savings Scenario

A solo attorney using 15% of their home for law practice deducts $4,500/year in home office expenses, plus $2,400 in Westlaw and legal research tools, saving $2,553 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 §280A Uncle Kam Clients Only

Graphic Designer Equipment & Home Office Deduction

Graphic designers can deduct computer equipment (iMac, MacBook Pro), external monitors, drawing tablets (Wacom Intuos Pro $500, Cintiq $1,500+), and any hardware used for design work under Section 179. A designer spending $5,000 on a new iMac and Wacom tablet deducts the full amount in year one. Also deduct the home office space used exclusively for design work.

Eligibility Requirements
  • Must be a self-employed graphic designer
  • Must use a dedicated space in your home exclusively and regularly for design work
  • Equipment must be used for design work that generates income
  • Must report income on Schedule C
Example Savings Scenario

A graphic designer using 12% of their home for design work deducts $2,400/year in home office expenses, plus $3,500 in equipment (iMac, Wacom tablet, monitor), saving $2,183 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 IRC §168(k) Uncle Kam Clients Only 2026 Law Update

Bonus Depreciation

Deduct 100% of the cost of qualifying new or used property in the first year it is placed in service. The OBBBA permanently restored 100% bonus depreciation for property with a recovery period of 20 years or less.

Eligibility Requirements
  • New or used qualifying property
  • Property with recovery period of 20 years or less
  • Placed in service after January 19, 2025
Example Savings Scenario

A $1M equipment purchase at 100% bonus depreciation generates a $1M Year 1 deduction, saving $370,000 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 §105, §9831 Uncle Kam Clients Only

Section 105 HRA / QSEHRA Health Reimbursement

Qualified Small Employer Health Reimbursement Arrangements (QSEHRAs) allow small businesses to reimburse employees for individual health insurance premiums and medical expenses tax-free.

Eligibility Requirements
  • Fewer than 50 full-time employees
  • No group health plan offered
  • Employees have individual health insurance coverage
Example Savings Scenario

A business owner reimbursing 5 employees $500/month each: $30,000 in annual reimbursements are fully deductible, saving $11,100 at a 37% rate vs. paying after-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 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 §51 Uncle Kam Clients Only

Work Opportunity Tax Credit (WOTC)

Employers receive a tax credit of $2,400 to $9,600 for each qualifying new hire from targeted groups including veterans, SNAP recipients, ex-felons, and long-term unemployed individuals.

Eligibility Requirements
  • Hire from a WOTC-targeted group
  • Employee works at least 120 hours in the first year
  • File Form 8850 within 28 days of the hire date
Example Savings Scenario

Hiring 10 qualifying employees at an average credit of $4,000 = $40,000 in direct tax credits, 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 §45E Uncle Kam Clients Only

Retirement Plan Startup Tax Credit

Small businesses with 100 or fewer employees receive a tax credit of up to $5,000 per year for 3 years for the costs of starting a new retirement plan, plus an additional credit for employer contributions.

Eligibility Requirements
  • 100 or fewer employees earning at least $5,000
  • No retirement plan in the prior 3 years
  • At least one non-highly compensated employee participates
Example Savings Scenario

A 10-person company starting a 401(k) receives $5,000/year for 3 years = $15,000 in direct tax credits, covering most of the setup and administration costs.

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 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 §62(a)(2)(A) Uncle Kam Clients Only

S-Corp Owner Accountable Plan Reimbursement Strategy

S-Corp owners can reimburse themselves tax-free for business expenses through an Accountable Plan — home office, vehicle, phone, internet, and equipment. The corporation deducts the reimbursement as a business expense, and the owner receives it tax-free. An S-Corp owner reimbursing $12,000/year in home office and vehicle expenses saves $4,440 in taxes at 37%.

Eligibility Requirements
  • Must be an S-Corp shareholder-employee
  • Must have a written accountable plan policy
  • Expenses must have a business connection
  • Must substantiate expenses with receipts and documentation
Example Savings Scenario

An S-Corp owner reimbursing $12,000/year in home office, vehicle, and phone expenses through an accountable plan saves $4,440 in taxes at 37% - the reimbursements are tax-free to the employee and deductible to the S-Corp.

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
Business IRC §162 Uncle Kam Clients Only

YouTuber AdSense Income Structure & S-Corp Strategy

YouTubers earning AdSense income are self-employed and can deduct all channel-related expenses: equipment, editing software (Adobe Premiere, Final Cut Pro), music licensing (Epidemic Sound), stock footage, thumbnails (Canva), and channel management tools. Structuring as an S-Corp above $50,000 in net income saves $5,000–$15,000 in self-employment taxes annually.

Eligibility Requirements
  • Must have monetized YouTube channel (AdSense, memberships, Super Chat)
  • Must report YouTube income as self-employment income on Schedule C
  • Must have an LLC or business entity for larger channels
  • Income includes AdSense, channel memberships, Super Chat, and merchandise
Example Savings Scenario

A YouTuber with $100,000 in AdSense income structured through an S-Corp saves $7,650 in SE tax by taking $50,000 as salary and $50,000 as distributions.

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
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 §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 §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 §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 §1366 Uncle Kam Clients Only

S-Corp Owner Reasonable Salary & Distribution Strategy

S-Corp owners must pay themselves a reasonable salary for services rendered to the corporation — but can take additional profits as distributions not subject to self-employment tax. An S-Corp owner earning $200,000 in profit who pays themselves a $80,000 salary saves $18,360 in SE taxes on the $120,000 distribution. The IRS requires the salary to be comparable to what you would pay a third party for the same work.

Eligibility Requirements
  • Must be an S-Corp shareholder-employee
  • Must pay yourself a reasonable salary for services performed
  • Distributions above salary are not subject to SE tax
  • Must have consistent profitability to justify S-Corp election
Example Savings Scenario

An S-Corp owner with $150,000 in profit takes $75,000 as salary and $75,000 as distributions, saving $11,475 in SE tax vs. sole proprietor (15.3% on $75,000 = $11,475).

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 §7701 Uncle Kam Clients Only

LLC Owner Tax Election Strategy (Sole Prop vs. S-Corp vs. C-Corp)

LLC owners can elect to be taxed as a sole proprietorship (default), S-Corp, or C-Corp. The S-Corp election typically saves $5,000–$20,000 in self-employment taxes once net income exceeds $50,000. The C-Corp election (21% flat rate) benefits owners reinvesting profits in the business. The right election depends on income level, distribution needs, and business goals.

Eligibility Requirements
  • Must own an LLC (single-member or multi-member)
  • Single-member LLCs are taxed as sole proprietors by default
  • Multi-member LLCs are taxed as partnerships by default
  • Can elect S-Corp or C-Corp taxation by filing Form 2553 or Form 8832
Example Savings Scenario

An LLC owner with $120,000 in profit who elects S-Corp taxation saves $9,180 in SE tax by taking $60,000 as salary and $60,000 as distributions.

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 Taxpayers 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.

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); }); })();