module ReportsHelper def calculate_restock(available) stock = (available.stock_max - available.stock) stock end end