经济状况计算公式
<h3><strong>泰拉索尔(Terrasol)角色经济状况计算公式</strong></h3>
<p><strong>(基于现实人民币购买力,1 TC ≈ 1 RMB)</strong> </p>
<hr />
<h3><strong>1. 基础参数定义</strong></h3>
<h4><strong>1.1 角色属性参数</strong></h4>
<table>
<thead>
<tr>
<th><strong>变量名</strong></th>
<th><strong>含义</strong></th>
<th><strong>示例值(岚昕)</strong></th>
</tr>
</thead>
<tbody>
<tr>
<td><code>Rank</code></td>
<td>军衔/职级(1-10级,10为最高)</td>
<td>4(少尉)</td>
</tr>
<tr>
<td><code>Ability</code></td>
<td>是否为特异人士(1=是,0=否)</td>
<td>1</td>
</tr>
<tr>
<td><code>Urban</code></td>
<td>居住城市等级(1-5线,1线最贵)</td>
<td>2(钢铁堡)</td>
</tr>
<tr>
<td><code>Service</code></td>
<td>服役/工作年限(年)</td>
<td>5</td>
</tr>
</tbody>
</table>
<h4><strong>1.2 经济环境参数</strong></h4>
<table>
<thead>
<tr>
<th><strong>变量名</strong></th>
<th><strong>含义</strong></th>
<th><strong>诺瓦利亚参考值</strong></th>
</tr>
</thead>
<tbody>
<tr>
<td><code>BaseSalary</code></td>
<td>基础月薪(TC)</td>
<td><code>Rank * 3000</code></td>
</tr>
<tr>
<td><code>HousingPrice</code></td>
<td>房价(TC/㎡)</td>
<td><code>5000 * (6 - Urban)</code></td>
</tr>
<tr>
<td><code>LoanRate</code></td>
<td>商业贷款利率(%)</td>
<td>4.1%</td>
</tr>
</tbody>
</table>
<hr />
<h3><strong>2. 收入计算公式</strong></h3>
<h4><strong>2.1 月收入(税前)</strong></h4>
<pre><code>Income = BaseSalary + Bonus + Allowance </code></pre>
<ul>
<li><strong><code>BaseSalary</code>(基础工资)</strong> = <code>Rank * 3000</code>
<ul>
<li><em>例:岚昕(Rank=4)→ 12,000 TC</em> </li>
</ul></li>
<li><strong><code>Bonus</code>(奖金/绩效)</strong> = <code>BaseSalary * 0.25 * Rand(0.8, 1.2)</code>
<ul>
<li><em>浮动范围80%-120%,岚昕≈3,000 TC</em> </li>
</ul></li>
<li><strong><code>Allowance</code>(津贴)</strong>:
<ul>
<li><strong>能力津贴</strong> = <code>Ability * 5000</code> </li>
<li><strong>住房津贴</strong> = <code>Urban * 500</code> </li>
<li><em>岚昕合计:5,000(能力) + 1,000(住房)= 6,000 TC</em> </li>
</ul></li>
</ul>
<h4><strong>2.2 税后收入</strong></h4>
<pre><code>NetIncome = Income - Tax - Insurance </code></pre>
<ul>
<li><strong><code>Tax</code>(个人所得税)</strong>:
<pre><code>If Income ≤ 10,000: Tax = Income * 0.03
Else If Income ≤ 25,000: Tax = Income * 0.1 - 700
Else: Tax = Income * 0.2 - 3,200 </code></pre>
<ul>
<li><em>岚昕(24,800 TC)→ 24,800</em>0.2 - 3,200 = 1,200 TC* </li>
</ul></li>
<li><strong><code>Insurance</code>(五险一金)</strong> = <code>BaseSalary * 0.22</code>
<ul>
<li><em>岚昕:12,000</em>0.22 = 2,640 TC* </li>
</ul></li>
</ul>
<hr />
<h3><strong>3. 资产与负债计算公式</strong></h3>
<h4><strong>3.1 房产价值</strong></h4>
<pre><code>HouseValue = HouseArea * HousingPrice </code></pre>
<ul>
<li><em>岚昕商品房(100㎡, 2线城市)→ 100 </em> 12,000 = 1,200,000 TC* </li>
</ul>
<h4><strong>3.2 房贷月供</strong></h4>
<pre><code>Mortgage = HouseValue * 0.7 * [LoanRate*(1+LoanRate)^360] / [(1+LoanRate)^360 - 1] </code></pre>
<ul>
<li><em>岚昕:1,200,000</em>0.7 → 84万贷款,月供≈4,050 TC* </li>
</ul>
<h4><strong>3.3 车辆折旧</strong></h4>
<pre><code>CarDepreciation = CarValue * 0.1 / 12 </code></pre>
<ul>
<li><em>北京212(80,000 TC)→ 月折旧≈670 TC</em> </li>
</ul>
<hr />
<h3><strong>4. 支出计算公式</strong></h3>
<pre><code>Expense = FixedCost + Living + Optional </code></pre>
<ul>
<li><strong><code>FixedCost</code>(固定支出)</strong>:
<ul>
<li>房贷 <code>Mortgage</code> </li>
<li>社保 <code>Insurance</code> </li>
<li>车辆保险 <code>CarValue * 0.01 / 12</code> </li>
</ul></li>
<li><strong><code>Living</code>(生活成本)</strong> = <code>Urban * 1500</code>
<ul>
<li><em>2线城市→3,000 TC</em> </li>
</ul></li>
<li><strong><code>Optional</code>(可选消费)</strong>:
<ul>
<li>娱乐:<code>500-2000 TC</code> </li>
<li>能力维护:<code>Ability * 1000</code> </li>
</ul></li>
</ul>
<hr />
<h3><strong>5. 自动化计算模板(Excel/Google Sheets)</strong></h3>
<table>
<thead>
<tr>
<th><strong>变量</strong></th>
<th><strong>公式</strong></th>
<th><strong>示例值</strong></th>
</tr>
</thead>
<tbody>
<tr>
<td>基础工资</td>
<td><code>=Rank*3000</code></td>
<td>12,000</td>
</tr>
<tr>
<td>税后收入</td>
<td><code>=Income - (Income*0.2-3200) - (BaseSalary*0.22)</code></td>
<td>20,500</td>
</tr>
<tr>
<td>房贷月供</td>
<td><code>=PMT(LoanRate/12, 360, HouseValue*0.7)</code></td>
<td>-4,050</td>
</tr>
<tr>
<td>月结余</td>
<td><code>=NetIncome - Expense</code></td>
<td>4,850</td>
</tr>
</tbody>
</table>
<hr />
<h3><strong>6. 使用说明</strong></h3>
<ol>
<li><strong>填入角色参数</strong>(Rank, Urban等)→ <strong>自动生成经济状况</strong>。 </li>
<li><strong>调整细节</strong>:
<ul>
<li>市场化国家(如阿斯特利亚)可提高 <code>BaseSalary</code> 20%。 </li>
<li>学生/无业者设置 <code>Rank=0</code>,收入依赖家庭或兼职。 </li>
</ul></li>
<li><strong>特殊事件模拟</strong>:
<ul>
<li>踩毁城市罚款:<code>Wealth = Wealth - DamageCost * 0.1</code> </li>
</ul></li>
</ol>
<hr />
<h3><strong>示例:计算雪莉的经济状况</strong></h3>
<ul>
<li><strong>Rank=6</strong>(中尉),<strong>Urban=1</strong>(首都),<strong>Ability=0</strong> </li>
<li><strong>月收入</strong> = 18,000 + 4,500 + 500 = 23,000 TC </li>
<li><strong>房贷</strong>(1线市价15,000 TC/㎡,80㎡)→ 月供≈7,200 TC </li>
<li><strong>结余</strong> ≈ 23,000*0.78 - 7,200 - 3,000 = 7,500 TC </li>
</ul>
<hr />
<p><strong>是否需要提供可编辑的Excel模板?</strong> 或需增加其他经济场景(如黑市交易、战争补偿)?</p>