Skip to content

fix(membership): correct dues calculator formula rounding error#447

Merged
mohanadft merged 1 commit into
mainfrom
fix/membership-calculator-dues-formula
May 5, 2026
Merged

fix(membership): correct dues calculator formula rounding error#447
mohanadft merged 1 commit into
mainfrom
fix/membership-calculator-dues-formula

Conversation

@mohanadft
Copy link
Copy Markdown
Collaborator

@mohanadft mohanadft commented May 5, 2026

Summary

  • Fixed membership calculator using divisor 167 which produced slightly inaccurate dues suggestions (e.g. $49.90 instead of $50.00 for $100k annual income)
  • Replaced with 0.006 multiplier (0.6%) for exact results

Test plan

  • Enter $100,000 annual income in USD — should show exactly $50.00/month
  • Enter $8,333.33 monthly income in USD — should show ~$50.00/month
  • Verify other currencies still convert correctly

🤖 Generated with Claude Code

The divisor 167 produced slightly inaccurate results (e.g. $49.90
instead of $50 for $100k income). Use 0.006 multiplier (0.6%) for
exact results.
@cloudflare-workers-and-pages
Copy link
Copy Markdown

Deploying website with  Cloudflare Pages  Cloudflare Pages

Latest commit: e26b197
Status: ✅  Deploy successful!
Preview URL: https://7d89cd63.website-aun.pages.dev
Branch Preview URL: https://fix-membership-calculator-du.website-aun.pages.dev

View logs

@mohanadft mohanadft merged commit 1ccb5e0 into main May 5, 2026
5 checks passed
@mohanadft mohanadft deleted the fix/membership-calculator-dues-formula branch May 5, 2026 08:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant