Exemplo n.º 1
0
 /**
  * @return string
  */
 public function getTimeInDays()
 {
     return $this->time->toDays();
 }
Exemplo n.º 2
0
 /**
  * @return string
  */
 public function getAnnuityLengthInDays()
 {
     return MathFuncs::mul($this->annuityNoOfCompoundingPeriods, $this->annuityPeriodLength->toDays());
 }
Exemplo n.º 3
0
 /**
  * @return string [Length of the debt in years as a string]
  */
 public function getDebtLengthInDays()
 {
     return MathFuncs::mul($this->debtNoOfCompoundingPeriods, $this->debtPeriodLength->toDays());
 }
Exemplo n.º 4
0
 public function testDaysFromTimeSpan()
 {
     $this->assertEquals(630, $this->timeSpan->toDays());
 }