started function for finding the percentage of data
available