If you re planning on a single sheet vinyl, most comes in 12 foot widths. There will be a lot of waste.
If you want to use LVL, measure length by width. Buy according to those measurements. There will still be a good deal of waste if you install it properly, but you can return unopened boxes.
That's how I did it when doing my kitchen, dining room and hallway in my house.