diff --git a/app/models/p_hire.rb b/app/models/p_hire.rb index bab054f..50c5bcf 100644 --- a/app/models/p_hire.rb +++ b/app/models/p_hire.rb @@ -112,7 +112,7 @@ class PHire @end_date = re.end_time if @start_date < start_date if re.recurring_interval == "week" - @start_date += (start_date - @start_date).to_i / 7) * interval + @start_date += ((start_date - @start_date).to_i / 7) * interval else @start_date += ((start_date.year * 12 + start_date.month) - (@start_date.year * 12 + @start_date.month) - 1) * interval end