Skip to content
This repository was archived by the owner on Aug 22, 2023. It is now read-only.

MRR is calculated incorrectly#2

Open
gkoberger wants to merge 7 commits into
segmentio:masterfrom
gkoberger:master
Open

MRR is calculated incorrectly#2
gkoberger wants to merge 7 commits into
segmentio:masterfrom
gkoberger:master

Conversation

@gkoberger

Copy link
Copy Markdown

During a refactor, amount wasn't changed to amountMrr everywhere.

gkoberger added 6 commits May 23, 2015 15:58
`coupon.valid` only tells you if the coupon could *currently* be added
to a new subscription, which means any one-time user coupon would be
invalid and not work. Since it's attached, we know it was valid at the time.
@gkoberger

Copy link
Copy Markdown
Author

MRR was being miscalculated due to a number of reasons:

  • The Stripe fee didn't include the 30 cents
  • Any coupon that's currently invalid wasn't included (even if it was valid at the time)
  • Subscription coupons weren't included (only user coupons were)
  • If your discount (ie $50) was more than the charge amount (ie $49), the user would be "paid" (ie $1)
  • Some people don't pay Stripe fees (and even if they do, some might want to include that in MRR)

It still doesn't match up with BareMetrics for us (and I'm sure there's a ton of other edge cases), however it's much, much closer.

@gkoberger gkoberger changed the title amount -> amountMRR MRR is calculated incorrectly May 23, 2015
@richardonrails

Copy link
Copy Markdown

👍

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants