Creating file... Some calculations needed