diff --git a/app/controllers/customers_controller.rb b/app/controllers/customers_controller.rb
index 353e266..e8b8ec4 100644
--- a/app/controllers/customers_controller.rb
+++ b/app/controllers/customers_controller.rb
@@ -93,6 +93,10 @@ class CustomersController < ApplicationController
@billing_address = address_to_s(@customer.billing_address)
@shipping_address = address_to_s(@customer.shipping_address)
@closed_issues = (@issues - @issues.open)
+ @hours = 0
+ @closed_hours = 0
+ @issues.open.each { |i| @hours+= i.total_spent_hours }
+ @closed_issues.each { |i| @closed_hours+= i.total_spent_hours }
rescue
render_404
end
diff --git a/app/views/customers/show.html.erb b/app/views/customers/show.html.erb
index 2a7689f..af5d5b7 100644
--- a/app/views/customers/show.html.erb
+++ b/app/views/customers/show.html.erb
@@ -35,8 +35,8 @@
-