duration calculation and databind