code to read last day data