function getClaimAmount(address investor) public constant returns (uint) {

        
        if(getState() != State.Distributing) {
            throw;
        }
        return balances[investor].times(tokensBought) / weiRaised;
    }