headroom caluation powered by json data