formula by agnsai_varun | SimScale...