calculation using CSS