Skip to content

Latest commit

 

History

4 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 

Repository files navigation

Optimal rollover calculator

A simple Ruby script to iterate over a range of dates by day to calculate the total validity period of a set of recurring data bundles that are allocated at different intervals to when they expire.

The code checked in here is written for bundles that recur every 30 days and expire at the end of the following month.

For the script to work you'll probably need Ruby 1.9.3 or newer, as the step method is not available in older versions of the Ruby standard library (if Ruby-doc is to be believed).

Since I'm not exactly inventing multi-touch here, I thought I might as well unlicense it.

About

A script to calculate the day(s) on which you will get the maximum overall time out of a recurring data bundle based on a variety of parameters

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages