add timeout of 7 minutes⁄
use a similar formula which is less expensive to compute