// months of runway, under the policy
func runway(cash: Double, btc: Double,
price: Double, burn: Double) -> Double {
(cash + btc * price * 0.7) / burn
}
// months of runway, under the policy
fun runway(cash: Double, btc: Double,
price: Double, burn: Double) =
(cash + btc * price * 0.7) / burn
// months of runway, under the policy
export const runway = (cash: number, btc: number,
price: number, burn: number) =>
(cash + btc * price * 0.7) / burn;
# months of runway, under the policy
def runway(cash: float, btc: float,
price: float, burn: float) -> float:
return (cash + btc * price * 0.7) / burn
// months of runway, under the policy
pub fn runway(cash: f64, btc: f64,
price: f64, burn: f64) -> f64 {
(cash + btc * price * 0.7) / burn
}
// months of runway, under the policy
func Runway(cash, btc, price, burn float64) float64 {
return (cash + btc*price*0.7) / burn
}
-- months of runway, under the policy
SELECT (cash + btc * price * 0.7) / burn
AS runway_months
FROM treasury_snapshot;
// months of runway, under the policy
function runway(uint cash, uint btc, uint price,
uint burn) public pure returns (uint) {
return (cash + btc * price * 7 / 10) / burn;
}