Implemented proper calculation for table