(cherry picked from commit 89bca6110a
)
Co-authored-by: Ryo Onodera <ryoqun@gmail.com>
This commit is contained in:
@@ -55,6 +55,7 @@ impl Inflation {
|
||||
}
|
||||
/// inflation rate at year
|
||||
pub fn total(&self, year: f64) -> f64 {
|
||||
assert!(year >= 0.0);
|
||||
let tapered = self.initial * ((1.0 - self.taper).powf(year));
|
||||
|
||||
if tapered > self.terminal {
|
||||
|
Reference in New Issue
Block a user