Simple cube oriented around the center with a parametric interface. Just copy/paste into openjscad.org and hit shift+enter.
Oops, left a hardcoded 0.3 in. Fixed.