Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
sagemathinc
GitHub Repository: sagemathinc/cocalc
Path: blob/master/src/packages/util/consts/billing.ts
5750 views
1
/*
2
* This file is part of CoCalc: Copyright © 2020 Sagemath, Inc.
3
* License: MS-RSL – see LICENSE.md for details
4
*/
5
6
const ONE_HOUR_MS = 60 * 60 * 1000;
7
export const ONE_DAY_MS = 24 * ONE_HOUR_MS;
8
export const AVG_MONTH_DAYS = 30.5;
9
export const AVG_YEAR_DAYS = 12 * AVG_MONTH_DAYS;
10
export const ONE_MONTH_MS = AVG_MONTH_DAYS * ONE_DAY_MS;
11
12
// throughout the UI, we show this price as the minimum (per month)
13
// It is nice if it is vague enough to match price changes.
14
export const LICENSE_MIN_PRICE = "a few $ per month";
15
16
// Trial Banner in the UI
17
export const EVALUATION_PERIOD_DAYS = 3;
18
export const BANNER_NON_DISMISSIBLE_DAYS = 7;
19
20
// The "standard license" disk size.
21
// used in next/store and student-pay
22
// Aug 2025: changed from 3 to 10 GB in anticipation of the new file server
23
// However, the actual presets are capped at the maximum disk size.
24
// That disk max is in util/upgrades/consts.ts
25
export const STANDARD_DISK = 10;
26
27