fix the home page
Deploy to Shared Hosting / Shared hosting deploy (push) Failing after 49s
Tests / PHPUnit (push) Successful in 1m21s

This commit is contained in:
root
2026-08-24 03:07:02 -04:00
parent a6e0ce1432
commit 576da3bd78
3 changed files with 496 additions and 1 deletions
+62
View File
@@ -0,0 +1,62 @@
def estimated_aid(total_balance, household_size, household_income):
"""Estimate aid using a Massachusetts cost-adjusted poverty benchmark."""
if household_size < 1:
raise ValueError("household_size must be at least 1")
if total_balance < 0 or household_income < 0:
raise ValueError("balance and income cannot be negative")
# Official 2026 federal poverty guideline for the contiguous states.
federal_poverty_level = (
15_960 + 5_680 * (household_size - 1)
)
# Massachusetts prices are approximately 5.757% above the
# national average according to the latest available BEA data.
massachusetts_cost_factor = 1.05757
# This is an internal cost-adjusted benchmark, not the official FPL.
adjusted_need_threshold = (
federal_poverty_level * massachusetts_cost_factor
)
# Protect household income up to 200% of the adjusted benchmark.
protected_income = 2.0 * adjusted_need_threshold
# Only income exceeding the protected amount is considered available.
discretionary_income = max(
0.0,
household_income - protected_income,
)
# Expect 10% of discretionary income to be available for school fees.
expected_contribution = 0.10 * discretionary_income
# Aid covers the remaining fee balance.
estimated = total_balance - expected_contribution
# Prevent negative awards or awards exceeding the fee balance.
return round(
max(0.0, min(total_balance, estimated)),
2,
)
def final_rebate(
total_balance,
household_size,
household_income,
amount_requested,
):
"""Return estimated aid capped by the request and fee balance."""
if amount_requested < 0:
raise ValueError("amount_requested cannot be negative")
estimated = estimated_aid(
total_balance,
household_size,
household_income,
)
return min(estimated, amount_requested, total_balance)
+1 -1
View File
@@ -661,7 +661,7 @@
<div class="col-lg-6">
<div class="h-100 d-flex flex-column justify-content-center p-5">
<h1 class="mb-4">Our Curriculum and Grade Structure</h1>
<p>Our program spans nine structured grade levels, each building upon the previous year's knowledge to ensure a solid foundation in faith, character, and Islamic learning.</p>
<p>Our program spans ten structured grade levels, each building upon the previous year's knowledge to ensure a solid foundation in faith, character and Islamic learning.</p>
<p>Upon completing the 10th grade, students transition into our two-year Youth Program, which emphasizes deeper community engagement, personal development and practical application of Islamic principles. Participation in the Youth Program requires students to be at least 16 years old, ensuring they are mature enough to benefit from its advanced content.</p>
<p>Starting this academic year, children must be at least 6 years old by 09-01-2026 to enroll in Grade 1. For younger learners, we are pleased to offer our newly established Kindergarten class, welcoming children who are at least 5 years old by 12-31-2026. This early education program is designed to introduce young minds to the basics of Islamic teachings in a warm, age-appropriate environment.</p>
<a class="btn btn-success py-3 px-5 mt-3" href="/register">Get Started Now<i class="fa fa-arrow-right ms-2"></i></a>