Passive Income ?????????????????????
Passive Income (??????????????????????????? passive) ???????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????? ????????????????????? Active Income ???????????????????????????????????????????????????????????????????????????????????? Passive Income ??????????????????????????? (???????????? ???????????? ?????????????????????????????????) ??????????????????????????? ?????????????????????????????????????????????????????????????????????????????????????????????????????????
??????????????????????????? Passive Income Investment Income ??????????????????????????????????????????????????? (??????????????????????????? ???????????????????????? ?????????????????????), Digital Products ?????????????????????????????????????????????????????????????????? (???????????????????????????????????? e-book software), Royalties ?????????????????????????????????????????????????????? (???????????? ????????????????????? ???????????????????????????), Business Income ???????????????????????????????????????????????????????????????????????? (franchise, automated business), Affiliate Income ????????????????????????????????????????????????????????????????????? (affiliate marketing)
???????????????????????????????????????????????????????????? Passive Income ??????????????? passive income ????????? "????????????????????????????????????????????????" ??????????????????????????????????????????????????????????????????????????????????????????????????????????????????, ?????????????????? maintenance (?????????????????? content, ??????????????????????????????????????????), ???????????????????????????????????????????????????????????? ???????????????????????????????????????????????????, ????????????????????????????????? 6-24 ??????????????? ???????????????????????????????????????????????????????????????????????????
????????????????????? Passive Income ?????????????????????
???????????????????????????????????? passive income
# === Passive Income Channels ===
cat > passive_income_channels.yaml << 'EOF'
passive_income_channels:
investment:
dividend_stocks:
description: "???????????????????????????"
initial_investment: "10,000+ ?????????"
expected_return: "3-6% ??????????????? (???????????????????????????)"
time_to_start: "???????????????"
effort: "????????? (??????????????????????????????)"
risk: "????????????-?????????"
thai_examples: ["SET50 ETF", "???????????????????????????????????? (ADVANC, PTT, SCB)"]
reit:
description: "????????????????????????????????????????????????????????????????????????"
initial_investment: "10,000+ ?????????"
expected_return: "4-8% ???????????????"
time_to_start: "???????????????"
effort: "?????????"
risk: "????????????"
thai_examples: ["FTREIT", "CPNREIT", "LHHOTEL"]
fixed_deposit:
description: "????????????????????????????????????"
initial_investment: "1,000+ ?????????"
expected_return: "1.5-2.5% ???????????????"
time_to_start: "???????????????"
effort: "??????????????????"
risk: "??????????????????"
government_bonds:
description: "??????????????????????????????????????????"
initial_investment: "1,000+ ?????????"
expected_return: "2-3.5% ???????????????"
time_to_start: "????????????????????????????????????"
effort: "?????????"
risk: "??????????????????"
digital:
online_course:
description: "????????????????????????????????????"
initial_investment: "???????????? 100-500 ??????. ??????????????? content"
expected_return: "5,000-100,000+ ?????????/???????????????"
time_to_start: "2-6 ???????????????"
effort: "????????? (???????????????), ????????? (???????????????????????????)"
platforms: ["Udemy", "Skillshare", "own website"]
ebook:
description: "???????????????????????????????????????????????????????????????"
initial_investment: "??????????????????????????? 50-200 ??????."
expected_return: "1,000-30,000 ?????????/???????????????"
time_to_start: "1-3 ???????????????"
platforms: ["Amazon KDP", "MEB", "own website"]
saas:
description: "Software as a Service"
initial_investment: "??????????????????????????? + hosting costs"
expected_return: "10,000-1,000,000+ ?????????/???????????????"
time_to_start: "3-12 ???????????????"
effort: "?????????????????? (???????????????), ???????????? (maintain)"
content:
youtube:
description: "YouTube Channel"
initial_investment: "??????????????? + ?????????????????? content"
expected_return: "1,000-500,000+ ?????????/???????????????"
time_to_start: "6-18 ??????????????? (????????? monetization)"
requirement: "1,000 subscribers + 4,000 watch hours"
blog_affiliate:
description: "Blog + Affiliate Marketing"
initial_investment: "Hosting $5-20/??????????????? + ???????????????????????????"
expected_return: "3,000-200,000+ ?????????/???????????????"
time_to_start: "6-12 ??????????????? (SEO traffic)"
EOF
echo "Passive income channels documented"
??????????????????????????????????????????????????????????????? Python
Python tools ????????????????????????????????????????????? passive income
#!/usr/bin/env python3
# passive_income_calc.py ??? Passive Income Calculator
import json
import logging
from typing import Dict, List
logging.basicConfig(level=logging.INFO)
logger = logging.getLogger("income")
class PassiveIncomeCalculator:
"""Calculate and compare passive income streams"""
def __init__(self):
pass
def dividend_income(self, investment, dividend_yield, years, reinvest=True):
"""Calculate dividend income with optional DRIP"""
portfolio = investment
total_dividends = 0
yearly_data = []
for year in range(1, years + 1):
annual_dividend = portfolio * (dividend_yield / 100)
total_dividends += annual_dividend
if reinvest:
portfolio += annual_dividend
yearly_data.append({
"year": year,
"portfolio": round(portfolio),
"annual_dividend": round(annual_dividend),
"monthly_dividend": round(annual_dividend / 12),
})
return {
"initial": investment,
"yield": dividend_yield,
"years": years,
"reinvest": reinvest,
"final_portfolio": round(portfolio),
"total_dividends": round(total_dividends),
"final_monthly_income": round(yearly_data[-1]["monthly_dividend"]),
"yearly_data": yearly_data,
}
def rental_income(self, property_price, monthly_rent, expenses_pct, loan_pct, loan_rate, loan_years):
"""Calculate rental property income"""
down_payment = property_price * (1 - loan_pct / 100)
loan_amount = property_price * (loan_pct / 100)
# Monthly loan payment
monthly_rate = loan_rate / 100 / 12
months = loan_years * 12
if monthly_rate > 0 and months > 0:
monthly_payment = loan_amount * (monthly_rate * (1 + monthly_rate) ** months) / \
((1 + monthly_rate) ** months - 1)
else:
monthly_payment = 0
monthly_expenses = monthly_rent * (expenses_pct / 100)
net_monthly = monthly_rent - monthly_expenses - monthly_payment
annual_net = net_monthly * 12
cap_rate = (monthly_rent * 12 * (1 - expenses_pct / 100)) / property_price * 100
cash_on_cash = annual_net / down_payment * 100 if down_payment > 0 else 0
return {
"property_price": property_price,
"down_payment": round(down_payment),
"loan_amount": round(loan_amount),
"monthly_rent": monthly_rent,
"monthly_expenses": round(monthly_expenses),
"monthly_loan_payment": round(monthly_payment),
"net_monthly_income": round(net_monthly),
"cap_rate": round(cap_rate, 2),
"cash_on_cash_return": round(cash_on_cash, 2),
}
def compare_streams(self, streams):
"""Compare different passive income streams"""
comparison = []
for stream in streams:
monthly = stream.get("monthly_income", 0)
investment = stream.get("initial_investment", 0)
roi = (monthly * 12 / investment * 100) if investment > 0 else 0
comparison.append({
"name": stream["name"],
"investment": investment,
"monthly_income": monthly,
"annual_roi": round(roi, 2),
"payback_months": round(investment / monthly) if monthly > 0 else 999,
})
return sorted(comparison, key=lambda x: x["annual_roi"], reverse=True)
calc = PassiveIncomeCalculator()
# Dividend income
div = calc.dividend_income(1000000, 5, 10, reinvest=True)
print(f"??????????????????????????? (??????????????? {div['initial']:,} ?????????, yield {div['yield']}%):")
print(f" ??????????????? 10: Portfolio {div['final_portfolio']:,} ?????????")
print(f" ??????????????????/???????????????: {div['final_monthly_income']:,} ?????????")
# Rental income
rental = calc.rental_income(3000000, 15000, 20, 70, 5.5, 30)
print(f"\n????????????????????? (??????????????????????????? {rental['property_price']:,} ?????????):")
print(f" ???????????????????????????: {rental['down_payment']:,} ?????????")
print(f" ?????????????????????: {rental['monthly_rent']:,} - ?????????????????????????????? {rental['monthly_expenses']:,} - ???????????? {rental['monthly_loan_payment']:,}")
print(f" ?????????????????????????????????/???????????????: {rental['net_monthly_income']:,} ?????????")
print(f" Cap Rate: {rental['cap_rate']}%, Cash-on-Cash: {rental['cash_on_cash_return']}%")
# Compare
streams = [
{"name": "???????????????????????????", "initial_investment": 1000000, "monthly_income": 4167},
{"name": "REIT", "initial_investment": 1000000, "monthly_income": 5000},
{"name": "????????????????????????????????????", "initial_investment": 900000, "monthly_income": rental["net_monthly_income"]},
{"name": "????????????????????????????????????", "initial_investment": 50000, "monthly_income": 20000},
]
comparison = calc.compare_streams(streams)
print(f"\n????????????????????????????????? Passive Income:")
for c in comparison:
print(f" {c['name']}: ROI {c['annual_roi']}%, {c['monthly_income']:,} ?????????/???????????????, ?????????????????? {c['payback_months']} ???????????????")
Passive Income ??????????????????????????? IT
????????????????????? passive income ?????????????????? IT professionals
#!/usr/bin/env python3
# it_passive_income.py ??? IT-Specific Passive Income
import json
import logging
from typing import Dict, List
logging.basicConfig(level=logging.INFO)
logger = logging.getLogger("it_income")
class ITPassiveIncome:
def __init__(self):
pass
def channels(self):
return {
"saas_product": {
"description": "??????????????? SaaS product ?????????????????? subscription",
"examples": ["Project management tool", "Invoice generator", "Analytics dashboard", "API service"],
"tech_stack": "Next.js + Supabase + Stripe",
"monthly_potential": "10,000-1,000,000+ ?????????",
"effort_build": "500-2000 ?????????????????????",
"effort_maintain": "10-40 ??????./?????????????????????",
"strategy": "Build MVP ??? Get 10 paying users ??? Iterate ??? Scale",
},
"wordpress_themes": {
"description": "????????????????????????????????? WordPress themes/plugins",
"platforms": ["ThemeForest", "WordPress.org", "Own site"],
"price_range": "$29-79 per license",
"monthly_potential": "15,000-300,000 ?????????",
"effort_build": "200-500 ?????????????????????",
"effort_maintain": "5-20 ??????./????????????????????? (updates, support)",
},
"api_service": {
"description": "??????????????? API service ????????? pay-per-use",
"examples": ["Image processing API", "AI text generation", "Data enrichment", "PDF generation"],
"platforms": ["RapidAPI", "AWS Marketplace", "Own infrastructure"],
"monthly_potential": "5,000-500,000 ?????????",
"pricing": "Free tier + $0.001-0.10 per request",
},
"online_courses": {
"description": "???????????????????????????????????????????????? programming/IT",
"platforms": ["Udemy", "Skillshare", "YouTube", "Own platform"],
"topics": ["Python", "DevOps", "Cloud", "Data Science", "Web Development"],
"monthly_potential": "5,000-200,000 ?????????",
"effort_build": "100-300 ??????. per course",
},
"open_source_sponsorship": {
"description": "??????????????? open source project + GitHub Sponsors",
"platforms": ["GitHub Sponsors", "Open Collective", "Patreon"],
"monthly_potential": "3,000-100,000 ?????????",
"requirement": "Popular project with active community",
},
"template_marketplace": {
"description": "????????? templates (Notion, Figma, code)",
"platforms": ["Gumroad", "Notion Marketplace", "Figma Community"],
"monthly_potential": "3,000-50,000 ?????????",
"effort_build": "20-100 ??????. per template",
},
}
def roadmap(self):
return {
"phase_1_foundation": {
"duration": "???????????????????????? 1-3",
"actions": [
"??????????????? 1 ???????????????????????????????????????????????? skill",
"?????????????????????????????????????????????????????????",
"??????????????? MVP/prototype",
"??????????????? build audience (blog/social media)",
],
},
"phase_2_launch": {
"duration": "???????????????????????? 4-6",
"actions": [
"Launch product/service",
"?????? early adopters 10-50 ??????",
"???????????? feedback ?????????????????????????????????",
"??????????????? SEO/content marketing",
],
},
"phase_3_growth": {
"duration": "???????????????????????? 7-12",
"actions": [
"Optimize conversion rate",
"??????????????? features ????????? feedback",
"Automate ????????????????????????????????????",
"????????????????????????: 10,000+ ?????????/???????????????",
],
},
"phase_4_scale": {
"duration": "??????????????? 2+",
"actions": [
"???????????????????????????????????? passive income ????????? 2",
"Hire/outsource maintenance",
"Focus on marketing and growth",
"????????????????????????: 50,000+ ?????????/???????????????",
],
},
}
it_income = ITPassiveIncome()
channels = it_income.channels()
print("IT Passive Income Channels:")
for name, info in channels.items():
print(f"\n {name}: {info['description']}")
print(f" Potential: {info['monthly_potential']}")
roadmap = it_income.roadmap()
print(f"\nRoadmap:")
for phase, info in roadmap.items():
print(f" {info['duration']}: {phase}")
for action in info["actions"][:2]:
print(f" - {action}")
????????????????????????????????????????????????????????????????????????
????????????????????????????????? passive income ???????????????????????????????????????
#!/usr/bin/env python3
# financial_freedom.py ??? Financial Freedom Calculator
import json
import logging
from typing import Dict, List
logging.basicConfig(level=logging.INFO)
logger = logging.getLogger("freedom")
class FinancialFreedomPlanner:
def __init__(self, monthly_expense):
self.monthly_expense = monthly_expense
def freedom_number(self, withdrawal_rate=4):
"""Calculate financial freedom number (25x rule)"""
annual_expense = self.monthly_expense * 12
freedom_number = annual_expense / (withdrawal_rate / 100)
return {
"monthly_expense": self.monthly_expense,
"annual_expense": annual_expense,
"withdrawal_rate": withdrawal_rate,
"freedom_number": round(freedom_number),
"explanation": f"?????????????????????????????? {round(freedom_number):,} ????????? ?????????????????? {withdrawal_rate}%/?????? = {annual_expense:,} ?????????/??????",
}
def time_to_freedom(self, current_savings, monthly_savings, annual_return):
"""Calculate years to financial freedom"""
target = self.freedom_number()["freedom_number"]
portfolio = current_savings
monthly_return = annual_return / 100 / 12
months = 0
while portfolio < target and months < 600:
portfolio = (portfolio + monthly_savings) * (1 + monthly_return)
months += 1
years = months / 12
return {
"target": target,
"current_savings": current_savings,
"monthly_savings": monthly_savings,
"annual_return": annual_return,
"years_to_freedom": round(years, 1),
"months_to_freedom": months,
"final_portfolio": round(portfolio),
}
def passive_income_portfolio(self):
"""Design passive income portfolio"""
monthly_target = self.monthly_expense
portfolio = {
"dividend_stocks": {
"allocation": 30,
"yield": 5,
"monthly_income": round(monthly_target * 0.30),
"capital_needed": round(monthly_target * 0.30 * 12 / 0.05),
},
"reit": {
"allocation": 20,
"yield": 6,
"monthly_income": round(monthly_target * 0.20),
"capital_needed": round(monthly_target * 0.20 * 12 / 0.06),
},
"bonds": {
"allocation": 15,
"yield": 3,
"monthly_income": round(monthly_target * 0.15),
"capital_needed": round(monthly_target * 0.15 * 12 / 0.03),
},
"digital_products": {
"allocation": 20,
"yield": None,
"monthly_income": round(monthly_target * 0.20),
"capital_needed": "??????????????????????????? content",
},
"rental_income": {
"allocation": 15,
"yield": 5,
"monthly_income": round(monthly_target * 0.15),
"capital_needed": round(monthly_target * 0.15 * 12 / 0.05),
},
}
total_capital = sum(
v["capital_needed"] for v in portfolio.values()
if isinstance(v["capital_needed"], (int, float))
)
return {"portfolio": portfolio, "total_capital_needed": total_capital, "monthly_target": monthly_target}
planner = FinancialFreedomPlanner(monthly_expense=40000)
freedom = planner.freedom_number()
print(f"Financial Freedom Number:")
print(f" {freedom['explanation']}")
print(f" ????????????????????????: {freedom['freedom_number']:,} ?????????")
timeline = planner.time_to_freedom(500000, 20000, 8)
print(f"\nTime to Freedom:")
print(f" ????????????????????????????????????: {timeline['current_savings']:,} ?????????")
print(f" ?????????: {timeline['monthly_savings']:,}/???????????????, ???????????????????????? {timeline['annual_return']}%")
print(f" ???????????????????????????????????????: {timeline['years_to_freedom']} ??????")
port = planner.passive_income_portfolio()
print(f"\nPassive Income Portfolio ({port['monthly_target']:,} ?????????/???????????????):")
for name, info in port["portfolio"].items():
cap = f"{info['capital_needed']:,} ?????????" if isinstance(info["capital_needed"], (int, float)) else info["capital_needed"]
print(f" {name}: {info['allocation']}% = {info['monthly_income']:,} ?????????/??????????????? (?????????????????????: {cap})")
print(f" ?????????????????? (?????????????????? digital): {port['total_capital_needed']:,} ?????????")
??????????????????????????????????????????????????????????????????????????????
???????????????????????????????????????????????????????????? passive income ???????????????
# === Tax Guide ===
cat > tax_guide.yaml << 'EOF'
passive_income_tax_thailand:
dividend:
tax_rate: "10% withholding tax (????????? ??? ?????????????????????)"
option: "???????????????????????????????????? ??? ????????????????????? 10% (final tax) ???????????? ???????????????????????????????????????????????????????????????????????????????????????"
tip: "??????????????????????????????????????????????????? (tax bracket ????????????????????? 10%) ???????????????????????????????????????????????????"
interest:
tax_rate: "15% withholding tax"
option: "???????????????????????????????????? ??? ????????????????????? 15% (final tax) ???????????? ?????????????????????"
exemption: "???????????????????????????????????????????????????????????????????????? ????????????????????? 20,000 ?????????/?????? ?????????????????????????????????????????????"
rental:
tax_rate: "Progressive rate (5-35%)"
deduction: "??????????????????????????????????????????????????? 30% ???????????????????????????????????????????????????/???????????????"
withholding: "????????????????????????????????????????????????????????? ??? ????????????????????? 5%"
online_income:
tax_rate: "Progressive rate (5-35%)"
type: "??????????????????????????????????????? 8 (????????????????????????????????????)"
deduction: "??????????????????????????????????????????????????? 60% ?????????????????????????????????"
platforms: "??????????????????????????? Udemy, YouTube, Affiliate ????????????????????????????????????"
capital_gains:
stocks: "????????????????????????????????? (???????????????????????????????????????????????????????????????????????????????????????????????????)"
crypto: "15% withholding tax (????????????????????? crypto)"
property: "????????????????????????????????????????????? 3.3% (????????? < 5 ??????) ???????????? ?????????????????????????????? 0.5%"
tax_saving_tips:
- "???????????????????????????????????????????????? SSF/RMF ??????????????????????????????????????????????????????"
- "?????????????????????????????????/?????????????????? ??????????????????????????????"
- "??????????????????????????????????????? ??????????????????????????? online > 1.8 ????????????/?????? (VAT threshold)"
- "???????????????????????????????????????????????????????????????????????????????????? ??????????????????????????????????????????????????????"
- "???????????????????????????????????????????????????????????? tax planning"
EOF
python3 -c "
import yaml
with open('tax_guide.yaml') as f:
data = yaml.safe_load(f)
tax = data['passive_income_tax_thailand']
print('???????????? Passive Income ???????????????:')
for income_type, info in tax.items():
if income_type == 'tax_saving_tips':
print(f'\nTax Saving Tips:')
for tip in info[:3]:
print(f' - {tip}')
elif isinstance(info, dict):
print(f'\n {income_type}:')
print(f' Tax rate: {info.get(\"tax_rate\", \"varies\")}')
if 'tip' in info:
print(f' Tip: {info[\"tip\"]}')
if 'deduction' in info:
print(f' Deduction: {info[\"deduction\"]}')
"
echo "Tax guide ready"
FAQ ??????????????????????????????????????????
Q: ???????????????????????? passive income ???????????????????????????????????????????????????????
A: ????????? ????????????????????????????????????????????????????????????????????????????????? ???????????????????????? (< 10,000 ?????????) ???????????????????????? content creation (blog, YouTube) ????????????????????????????????????????????????, Affiliate marketing ?????????????????????????????????????????????, ??????????????? templates (Notion, Canva) ??????????????? Gumroad, ??????????????? e-book ????????? ????????????????????????????????? (10,000-100,000 ?????????) ?????????????????????????????? ETF/REIT ???????????????????????? DCA, ???????????????????????????????????????????????????, ??????????????? SaaS MVP ????????????????????? (100,000+ ?????????) ?????????????????????????????????????????? portfolio, ??????????????????????????????????????????????????????????????????????????????, ??????????????? business ??????????????????????????? ????????????????????? ?????????????????????????????????????????????????????????????????????????????? ?????????????????????????????????????????????????????????????????? ??????????????????????????????????????? diversify risk
Q: Passive Income ????????? IT ???????????????????????????????????????????????????????
A: ????????????????????? skill ???????????????????????????????????? SaaS Product ????????????????????????????????????????????????????????????????????? ????????? risk ??????????????????????????????????????????????????????????????? ??????????????? experienced developers, Online Courses ?????????????????????????????????????????????????????? expertise ??????????????????????????? ????????????????????????????????????????????? ??????????????????????????? ??????????????? senior developers/architects, WordPress Themes/Plugins ???????????????????????? demand ???????????????????????? ????????? competition ?????????, API Services ??????????????? backend developers ?????? niche APIs, Open Source + Sponsors ??????????????? project ???????????????????????????????????? ??????????????? ???????????????????????? content (blog/YouTube ??????????????????????????? IT) ??????????????? audience ???????????? ???????????????????????? launch product ????????? audience ????????????
Q: ??????????????????????????????????????????????????????????????????????????????????????????????????????????????? meaningful?
A: ?????????????????????????????????????????? Investment (????????????/REIT) ????????????????????????????????????????????????????????????????????????????????? ??????????????? 1 ????????????????????? ??????????????? 5% = 4,167 ?????????/???????????????, Digital Products (???????????????/SaaS) 3-12 ????????????????????????????????? launch + 3-6 ??????????????????????????????????????? traction, Content (Blog/YouTube) 6-18 ??????????????????????????????????????? traffic/subscribers ?????? monetize, Rental Property ??????????????????????????????????????? ????????????????????? research ?????? property ??????????????? Realistic timeline ???????????????????????? 1-6 ???????????????/??????????????? ?????????????????????????????? 0, ???????????????????????? 6-12 ????????????????????????????????????????????? 1,000-10,000 ?????????, ??????????????? 2 ?????????????????? 10,000-50,000 ?????????/??????????????? (????????????????????????????????????), ??????????????? 3+ ?????????????????? 50,000+ ?????????/??????????????? (?????????????????? top performers)
Q: Passive Income ????????? Active Income ??????????????????????????????????????????????????????????
A: ???????????????????????????????????? Active 90% Passive 10% ????????????????????????????????? active income ???????????????????????? ????????? 10-20% ????????????????????????????????????????????????????????? passive income, ???????????????????????? (2-5 ??????) Active 60-70% Passive 30-40% passive income ????????????????????????????????????????????????, ????????????????????? (5+ ??????) Active 30-50% Passive 50-70% ?????? option ???????????????????????????????????????, Financial Freedom Active 0-20% Passive 80-100% passive income ??????????????????????????????????????????????????????????????????????????? ????????????????????? ???????????????????????? active income ?????????????????????????????? ???????????? passive income ?????????????????? 6-12 ??????????????????????????? ???????????????????????????????????????????????? passive income ?????? risk ?????????????????????????????????????????????
