six months calculation