Progress bar calculation added