Business Entity Legal Structure Analyzer

Business Entity Legal Structure Analyzer

Answer a few questions to find a suitable legal structure for your U.S. business.

Business Basics

How many owners will the business have?

Liability & Risk

How important is it to protect your personal assets (like your house or car) from business debts and lawsuits?

Taxation Approach

How do you prefer the business profits to be taxed?

Capital & Growth Plans

Do you plan to seek investment from venture capitalists or sell shares to the public (IPO) in the future?

Complete the previous steps to see your analysis.

'; return; } const { recommendation, reasoning } = state.analysis; const recData = entityData[recommendation.split(' ')[0]]; // Handle "LLC (Multi-Member)" let html = `

Analysis Complete

Based on your answers, here is our recommendation:

${recommendation}

${recData.desc}

Reasoning:

${reasoning}

Pros:
    ${recData.pros.map(p => `
  • ${p}
  • `).join('')}
Cons:
    ${recData.cons.map(c => `
  • ${c}
  • `).join('')}
`; resultDiv.innerHTML = html; pdfBtn.classList.remove('hidden'); } function downloadPDF() { if (!state.analysis) return; const { inputs, recommendation, reasoning } = state.analysis; const recData = entityData[recommendation.split(' ')[0]]; const { jsPDF } = jspdf; const doc = new jsPDF(); doc.setFontSize(20); doc.setFont("helvetica", "bold"); doc.text("Business Structure Analysis Report", 105, 20, { align: 'center' }); // User Inputs Section doc.setFontSize(14); doc.text("Your Inputs", 14, 40); doc.autoTable({ startY: 45, theme: 'grid', body: [ ['Number of Owners', inputs.owners === 1 ? 'One' : 'Two or More'], ['Liability Protection', inputs.liability === 'high' ? 'Crucial' : 'Low Priority'], ['Taxation Preference', inputs.taxation === 'pass-through' ? 'Pass-through' : 'Corporate'], ['Growth Strategy', inputs.growth === 'investors' ? 'Seek Investors' : 'Self-Funded'], ], }); // Recommendation Section let finalY = doc.lastAutoTable.finalY + 15; doc.setFontSize(14); doc.text("Recommendation", 14, finalY); doc.setFontSize(18); doc.setFont("helvetica", "bold"); doc.setTextColor(34, 139, 34); // Green color doc.text(recommendation, 14, finalY + 10); doc.setTextColor(0, 0, 0); // Reset color doc.setFontSize(10); doc.setFont("helvetica", "normal"); const reasoningLines = doc.splitTextToSize(`Reasoning: ${reasoning}`, 180); doc.text(reasoningLines, 14, finalY + 20); // Pros and Cons finalY = doc.lastAutoTable.finalY + 70; doc.autoTable({ startY: finalY, head: [['Pros', 'Cons']], body: [ [ recData.pros.map(p => `- ${p}`).join('\n'), recData.cons.map(c => `- ${c}`).join('\n') ] ], styles: { cellPadding: 4, valign: 'top' }, }); doc.save('Business_Structure_Analysis.pdf'); } // --- EVENT LISTENERS --- nextBtn.addEventListener('click', () => showTab(state.currentTab + 1)); prevBtn.addEventListener('click', () => showTab(state.currentTab - 1)); pdfBtn.addEventListener('click', downloadPDF); // --- INITIALIZATION --- function initialize() { showTab(0); } initialize(); });
Scroll to Top