If we see the desiredScreen before the calculated index , why do we calculate it previously?