結果 : how to calculate length and width