fix(plugin): Timeouts were not calculated correctly