How to calculate next and previous business days in Rails?
this is implementation:
require 'business_time' date = Time.now next_workday(date) private def next_workday(date:) return date = date.next_weekday while date.workday? end