function getAccountBalance(address addr)public constant returns (uint amount){
        Investment storage acc = investmentTable[roundcount][addr];
        uint ret = acc.initamount;
        if(acc.initamount > 0){
            uint rewardcount = (block.timestamp - acc.inittime) / rewardinterval;
            if(rewardcount > maxdays) rewardcount = maxdays;
            while(rewardcount > 0){
                ret += ret / 200; 
                rewardcount--;
            }
        }
        return ret;
    }