Calculate completed percentage

Signed-off-by: Prashant Shah <pshah.me@gmail.com>