Aded calculateGap function in popup.js. Also added event listener for click event on calculate button.
Aded calculateGap function in popup.js. Also added event listener for click event on calculate button.

subhoney/IM_Chrome,subhoney/IM_Chrome,subhoney/IM_Chrome