diff --git a/.rubocop_todo.yml b/.rubocop_todo.yml
index 918a8efbadf02a385aaa64ac7216b0c03714fd69..c1a845bfa42724128fb1a405765278cf817f9ed7 100644
--- a/.rubocop_todo.yml
+++ b/.rubocop_todo.yml
@@ -94,11 +94,6 @@ Lint/AmbiguousBlockAssociation:
     - 'spec/services/unsuspend_account_service_spec.rb'
     - 'spec/workers/scheduler/accounts_statuses_cleanup_scheduler_spec.rb'
 
-# This cop supports safe autocorrection (--autocorrect).
-Lint/AmbiguousOperatorPrecedence:
-  Exclude:
-    - 'config/initializers/rack_attack.rb'
-
 # Configuration parameters: AllowComments, AllowEmptyLambdas.
 Lint/EmptyBlock:
   Exclude:
diff --git a/config/initializers/rack_attack.rb b/config/initializers/rack_attack.rb
index 54b5746661214a7e419ec8210ceffbac71ef4b99..5cc4e9380af24b91bfe7158d6824734b7e741e96 100644
--- a/config/initializers/rack_attack.rb
+++ b/config/initializers/rack_attack.rb
@@ -145,7 +145,7 @@ class Rack::Attack
       'Content-Type'          => 'application/json',
       'X-RateLimit-Limit'     => match_data[:limit].to_s,
       'X-RateLimit-Remaining' => '0',
-      'X-RateLimit-Reset'     => (now + (match_data[:period] - now.to_i % match_data[:period])).iso8601(6),
+      'X-RateLimit-Reset'     => (now + (match_data[:period] - (now.to_i % match_data[:period]))).iso8601(6),
     }
 
     [429, headers, [{ error: I18n.t('errors.429') }.to_json]]