Having seperate prices based on Product + Time

I need to have a different price for appointments placed between 8-10pm, but also based on product. For example a dog walk for 30 minutes from 8-10 will cost 23 dollars (normally 17), but a dog walk for 45 minutes will cost 26 dollars (normally 20). Please see https://unionsquaredogwalker.com/store/products/appointment/

I was pointed to this post https://premium.wpmudev.org/forums/topic/appointments-different-price-for-different-time#post-329965 , but this only shows how to change price based on hour. Not the combination I need of Product + Price.

Thanks in advance for any help.