calculation working some what