Rewrote calculation when express frame will be sent