With this code we will get a height of a div and use that height in another place. And the height value will change automatically based time intervale.
Custom.js
setInterval(function () {
var topp = $('.header_area').outerHeight() - 50;
console.log(topp);
$('#header_paddig').css('height', topp);
}, 2000);