Skip to content

Commit

Permalink
fix: Stop overwriting cost-of-service
Browse files Browse the repository at this point in the history
  • Loading branch information
Zane Shelby committed Dec 2, 2023
1 parent 898a00a commit e790fae
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions notebooks/finance/model.clj
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,8 @@
revenue (* revenue-per-paying paying)
init-cpa (cpa cost users)
spend-rate (inc (/ ad-spend-increase 100.0))
cost-of-service (* cost-of-service users)
cost-per-user cost-of-service
cost-of-service (* cost-per-user users)
initial (dynamic/trace!
0
record-row
Expand Down Expand Up @@ -158,7 +159,7 @@
(+ (* retention-rate
(:cumulative-paying-users prev))
new-paying-users))
cost-of-service (* cost-of-service users-sum)
cost-of-service (* cost-per-user users-sum)
total-cost (+ new-spend cost-of-service)
revenue (* revenue-per-paying paying-sum)]
(dynamic/trace!
Expand Down

0 comments on commit e790fae

Please sign in to comment.