Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve price per month accuracy for weekly subscriptions #3480

Merged
merged 2 commits into from
Dec 5, 2023

Conversation

aboedo
Copy link
Member

@aboedo aboedo commented Nov 29, 2023

We were calculating the price per month for weekly products as price * 4, but there are on average 4.345 weeks in a month, so this updates the value accordingly.

@aboedo aboedo added the pr:fix A bug fix label Nov 29, 2023
@aboedo aboedo requested a review from a team November 29, 2023 17:51
@aboedo aboedo self-assigned this Nov 29, 2023
Copy link
Contributor

@NachoSoto NachoSoto left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Makes sense!

@tonidero tonidero merged commit ad0f9d9 into main Dec 5, 2023
19 of 20 checks passed
@tonidero tonidero deleted the andy/fix_price_per_month branch December 5, 2023 13:01
tonidero added a commit that referenced this pull request Dec 5, 2023
### Description
Followup to #3480 

This slightly improves precision when calculating price per year for
weekly subscriptions.
NachoSoto pushed a commit that referenced this pull request Dec 6, 2023
**This is an automatic release.**

### Bugfixes
* Improve pricePerYear price calculation precision (#3492) via Toni Rico
(@tonidero)
* Improve price per month accuracy for weekly subscriptions (#3480) via
Andy Boedo (@aboedo)
### Dependency Updates
* Bump danger from 9.4.0 to 9.4.1 (#3485) via dependabot[bot]
(@dependabot[bot])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pr:fix A bug fix
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants