Do you know about BOSL2? It can do rounding or chamfering very easily.
cuboid([20, 20, 30], chamfer=5);