If calculated row is beyond limit, don't go beyond limit