Node.js module to add, subtract, intersect timespans and generate them from rules.
Node.js module to calculate the cost of resource usage using time-based rules.