It’s a cost that needs to be taken into account before welcoming a dog into your home.