direction=(object.position-explosion.position).normalized()
this gives you a vector of length=1 in the direction explosion-object
you can then multiply it to the strenght of the explosion and maybe divide it by the distance of the explosion object
force= strength*direction/(object.position-explosion.position).length()