```python
def surfacearea_cuboid(l, w, h):
  """
  Calculates the surface area of a cuboid.

  Args:
    l: The length of the cuboid.
    w: The width of the cuboid.
    h: The height of the cuboid.

  Returns:
    The total surface area of the cuboid.
  """
  surface_area = 2 * (l * w + l * h + w * h)
  return surface_area
```