sauna-vs-gym-cost: Cost-per-session math for home recovery gear

[ library, math, mit ] [ Propose Tags ] [ Report a vulnerability ]

A home sauna or cold plunge is a gear price, a usage habit, and an electricity line. These functions spread the gear price over the sessions a habit accrues, add the electricity per session, and count the visits until the gear beats a per-visit alternative like a gym membership. The break-even count goes infinite when the alternative costs less than the electricity alone.

Companion to HackedSelf, which prices home recovery gear by cost-per-session math. Three pure functions on Doubles, no dependencies beyond base.


[Skip to Readme]

Modules

[Index] [Quick Jump]

Downloads

Maintainer's Corner

Package maintainers

For package maintainers and hackage trustees

Candidates

  • No Candidates
Versions [RSS] 0.1.0
Change log CHANGELOG.md
Dependencies base (>=4 && <5) [details]
License MIT
Copyright 2026 Poket Dev LLC
Author Poket Dev
Maintainer hello@poketdev.com
Uploaded by PoketDev at 2026-11-02T01:32:20Z
Category Math
Home page https://hackedself.com
Bug tracker https://github.com/scrapertweeter3-prog/sauna-vs-gym-cost-hs/issues
Source repo head: git clone https://github.com/scrapertweeter3-prog/sauna-vs-gym-cost-hs
Distributions
Downloads 3 total (3 in the last 30 days)
Rating (no votes yet) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Docs available [build log]
Last success reported on 2026-11-02 [all 1 reports]

Readme for sauna-vs-gym-cost-0.1.0

[back to package description]

sauna-vs-gym-cost

Cost-per-session math for home recovery gear.

A home sauna's real price is not the sticker. It is the gear price spread over the sessions a habit accrues, plus the electricity each session draws. A $2,500 unit run four times a week at $0.17 per kilowatt-hour lands at $25.34 a session by session 100 and $2.84 by session 1,000, electricity included both times.

The package follows the cost-per-session method used on HackedSelf. It depends only on base.

Example

A $2,500 sauna, a $22 gym visit across town, and $0.34 of power per session:

  • per-session electricity: utilityCost 2.0 0.17 = $0.34
  • session 100 all-in: sessionCost 2500 100 0.34 = $25.34
  • session 1,000 all-in: sessionCost 2500 1000 0.34 = $2.84
  • break-even: breakEvenSessions 2500 22 0.34 = 115.4 visits

At four sessions a week, 115.4 visits is about 6.6 months. Every gym trip after that costs more than the power bill for a home session. If the alternative were a $0.30 day pass, cheaper than the electricity alone, the break-even count goes infinite: no amount of usage closes a gap that opens the wrong way.