Adding the timespan function to the helper plugin