This video explains about jquery outer height function.
using outer height function we can get and set the height of matching elements relative to DOM.
So final math would be height of [ element + padding top + padding bottom + border top + border bottom ]
I need you to try these cases on your machine and also do try few crazy scenarios if you can.
If you get stuck or if you have any query then please do comment below and let me know.
I will try to reply you as soon as possible.