Final data calculate and output