How long does heart medication take to work in dogs