calculator printing and avg time working