Example #1
0
 /**
  * Find the total income for the store per day (average)
  * @developer Brandon Hansen
  * @date Oct 23, 2010
  */
 public function income_per_day_average()
 {
     return $this->total_income() / date::dateDiff($this->created_at, date('Y-m-d'));
 }