title: Laravel Nova Metric Trend In Future
body: <p>I'm stuck I want to create a Laravel Nova Metrics Trend where it goes in the future  instead of back in time.</p>
  
  <p>This code will output: 15-March-2019, 14-March-2019, 13-March-2019,  </p>
  
  <pre><code>public function calculate(Request $request)
  {
      return $this-&gt;sumByDays($request, Payment::class, 'hours_per_month', 'upcoming_invoice_date')-&gt;showLatestValue();
  }
  
  /**
   * Get the ranges available for the metric.
   *
   * @return array
   */
  public function ranges()
  {
      return [
          3 =&gt;  '3 Days',
      ];
  }
  </code></pre>
  
  <p>I've already made some changes to Trend.php but it gave me nothing than errors.</p>
  
  <pre><code>    /**
   * Return a value result showing a sum aggregate over days.
   *
   * @param  \Illuminate\Http\Request  $request
   * @param  \Illuminate\Database\Eloquent\Builder|string  $model
   * @param  string  $column
   * @param  string  $dateColumn
   * @return \Laravel\Nova\Metrics\TrendResult
   */
  public function sumByDays($request, $model, $column, $dateColumn = null)
  {
      return $this-&gt;aggregate($request, $model, Trend::BY_DAYS, 'sum', $column, $dateColumn);
  }
  </code></pre>
  
  <p>Is this even possible?</p>
  
  <p>Thanks,</p>