SSS Pension Calculator
Calculate your Social Security System pension benefits
Prayer for Online Class – Financial Planning Tools
Personal Information
Pension Calculation Results
Estimated Monthly Pension
₱0.00
Based on current contributions
13th Month Pension
₱0.00
Annual Total
₱0.00
Calculation Breakdown
Base Amount:
₱300.00
₱300.00
20% of AMSC:
₱0.00
₱0.00
2% per excess year:
₱0.00
₱0.00
Additional Benefit:
₱1,000.00
₱1,000.00
Total Monthly Pension:
₱0.00
₱0.00
Pension Projection Over Time
Contribution vs Benefits
SSS Pension Information
Minimum Requirements
- • At least 120 monthly contributions
- • Age 60 or 65 for retirement
- • Must not be receiving monthly pension
- • Separated from employment if under 65
Pension Formula
- • ₱300 base amount
- • 20% of Average Monthly Salary Credit
- • 2% of AMSC per excess year over 10
- • ₱1,000 additional benefit
Additional Benefits
- • 13th month pension
- • Death benefit for beneficiaries
- • Disability benefits
- • Funeral benefit
html_content = '''<!DOCTYPE html>
<html>
<head>
<style>
.loan-calculator {
max-width: 400px;
margin: 20px auto;
padding: 20px;
border: 1px solid #ddd;
border-radius: 8px;
font-family: Arial, sans-serif;
background-color: #f9f9f9;
}
.loan-calculator h3 {
text-align: center;
color: #333;
margin-bottom: 20px;
}
.form-group {
margin-bottom: 15px;
}
.form-group label {
display: block;
margin-bottom: 5px;
font-weight: bold;
color: #555;
}
.form-group input {
width: 100%;
padding: 8px;
border: 1px solid #ccc;
border-radius: 4px;
font-size: 16px;
box-sizing: border-box;
}
.calculate-btn {
width: 100%;
padding: 12px;
background-color: #007cba;
color: white;
border: none;
border-radius: 4px;
font-size: 16px;
cursor: pointer;
margin-top: 10px;
}
.calculate-btn:hover {
background-color: #005a87;
}
.result {
margin-top: 20px;
padding: 15px;
background-color: #e7f3ff;
border-radius: 4px;
text-align: center;
display: none;
}
.result h4 {
margin: 0 0 10px 0;
color: #333;
}
.monthly-payment {
font-size: 24px;
font-weight: bold;
color: #007cba;
}
</style>
</head>
<body>
<div class="loan-calculator">
<h3>Home Loan Calculator</h3>
<div class="form-group">
<label for="loanAmount">Loan Amount ($)</label>
<input type="number" id="loanAmount" placeholder="300000" min="1000">
</div>
<div class="form-group">
<label for="interestRate">Annual Interest Rate (%)</label>
<input type="number" id="interestRate" placeholder="3.5" step="0.01" min="0.1">
</div>
<div class="form-group">
<label for="loanTerm">Loan Term (Years)</label>
<input type="number" id="loanTerm" placeholder="30" min="1" max="50">
</div>
<button class="calculate-btn" onclick="calculateLoan()">Calculate Monthly Payment</button>
<div class="result" id="result">
<h4>Monthly Payment</h4>
<div class="monthly-payment" id="monthlyPayment">$0</div>
<p><strong>Total Amount Paid:</strong> $<span id="totalPaid">0</span></p>
<p><strong>Total Interest:</strong> $<span id="totalInterest">0</span></p>
</div>
</div>
<script>
function calculateLoan() {
// Get input values
const loanAmount = parseFloat(document.getElementById('loanAmount').value);
const annualRate = parseFloat(document.getElementById('interestRate').value);
const loanTerm = parseFloat(document.getElementById('loanTerm').value);
// Validate inputs
if (!loanAmount || !annualRate || !loanTerm) {
alert('Please fill in all fields');
return;
}
// Calculate monthly payment
const monthlyRate = annualRate / 100 / 12;
const numPayments = loanTerm * 12;
const monthlyPayment = loanAmount * (monthlyRate * Math.pow(1 + monthlyRate, numPayments)) /
(Math.pow(1 + monthlyRate, numPayments) - 1);
const totalPaid = monthlyPayment * numPayments;
const totalInterest = totalPaid - loanAmount;
// Display results
document.getElementById('monthlyPayment').textContent = '$' + monthlyPayment.toFixed(2);
document.getElementById('totalPaid').textContent = totalPaid.toFixed(2);
document.getElementById('totalInterest').textContent = totalInterest.toFixed(2);
document.getElementById('result').style.display = 'block';
}
// Allow Enter key to calculate
document.addEventListener('keypress', function(event) {
if (event.key === 'Enter') {
calculateLoan();
}
});
</script>
</body>
</html>'''
# Save to file
with open('home_loan_calculator.html', 'w') as f:
f.write(html_content)
print("Home loan calculator HTML file created successfully!")
print("\nTo use in WordPress:")
print("1. Copy the HTML code from the file")
print("2. In WordPress editor, add a 'Custom HTML' block")
print("3. Paste the code into the block")
print("4. Publish/update your page")
Home Loan Calculator
Monthly Payment
$0
Total Amount Paid: $0
Total Interest: $0
Home Loan Calculator
Monthly Payment
$0
Total Amount Paid: $0
Total Interest: $0
Home Loan Calculator
Monthly Payment
$0
Total Amount Paid: $0
Total Interest: $0