calculator for wics in js/html/css