added a util function for calculating driving force to a target