function intervalCount(range, intervalString, intervalMs) 
{
  // Convert everything to seconds
  var rangeSeconds = range.asSeconds()
  var intervalsInRange = rangeSeconds / (intervalMs / 1000)

  var output = intervalsInRange.toFixed(0) + ' ' + intervalString + ' intervals'
  return output
}
// And return the number of intervals that represents
And return the number of intervals that represents
And return the number of intervals that represents
function intervalCount(range, intervalString, intervalMs) 
{
  var rangeSeconds = range.asSeconds()
  var intervalsInRange = rangeSeconds / (intervalMs / 1000)
  var output = intervalsInRange.toFixed(0) + ' ' + intervalString + ' intervals'
  return output
}
function intervalCount ( range , intervalString , intervalMs ) { var rangeSeconds = range . asSeconds ( ) var intervalsInRange = rangeSeconds / ( intervalMs / 1000 ) var output = intervalsInRange . toFixed ( 0 ) + ' ' + intervalString + ' intervals' return output }
And return the number of intervals that represents
And return the number of intervals that represents
// Convert everything to seconds