Calculates the percentagem in a time frame considering the current date