Module: Susply::Calculations
- Defined in:
- app/services/susply/calculations.rb
Class Method Summary collapse
Class Method Details
.end_period_calculation(start, interval) ⇒ Object
3 4 5 6 7 8 9 10 11 12 |
# File 'app/services/susply/calculations.rb', line 3 def end_period_calculation(start, interval) case interval when 'yearly' start + 1.year when 'monthly' start + 1.month else start + 1.month end end |