Adding buy hours logic