more grainular pph math
Build Images and Deploy / Update-PROD-Stack (push) Successful in 1m21s

This commit is contained in:
2026-03-24 01:57:04 -04:00
parent 15378c1eec
commit f4c379b0d4
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -216,6 +216,6 @@ export async function getPostsData(
`pph: ${postsPerHour.toFixed(2)} (${method})`,
)
return { postsPerHour, relatedTags, displayTag, hasAnyPosts: true }
return { postsPerHour: Math.round(postsPerHour * 10) / 10, relatedTags, displayTag, hasAnyPosts: true }
}
+2 -2
View File
@@ -12,10 +12,10 @@
* 3 600 (viral) → $250.00 (design target)
* Asymptote → ~$346
*
* Floor: $0.25 (matches zero-PPH floor price).
* Floor: $0.25 for ≤ 1 PPH.
*/
export function calcPrice(postsPerHour: number): number {
if (postsPerHour <= 0) return 0.25
if (postsPerHour <= 1) return 0.25
const base = 0.25 // The base price at low volumes (1 PPH)
const anchor = 3600 // PPH at which we want the target price (1 PPS)
const target = 250 // price at the anchor PPH