Rows before area
A 3 m wide deck with 145 mm boards and a 5 mm gap needs 20 rows. Each row is the deck length, so 4 m × 20 = 80 m of board, plus 10 per cent for cuts. That is 34 boards at 2.4 m, not the 25 an area calculation suggests.
Joist spacing
Composite and 28 mm timber boards want joists at 400 mm centres; 21 mm boards want 300 mm. Joist direction is across the board run, and each joist needs a bearer or a post under it.
Fixings
Two screws per board per joist is the usual rule, so a 4 × 3 m deck is around 400 screws. Stainless or coated screws cost more and do not leave rust streaks.