Remove hard coded formula and also corrected the item key dimension