How are you calculating duration here? If you are trying to use calculated fields, unfortunately I don't think you can subtract two time and date fields. If yes, try using a JavaScript for calculating the duration and then apply you action for calculating
Total Price.
Regards, Abhishek Bakshi If you find this post helpful then please Vote as Helpful and Mark As Answer. Check my blog on https://mydynamicscrmblog.wordpress.com/