stem length calcualtion including ratio