formula by hsaurabh | SimScale