contract FeeCalculation {
    using SafeMath for uint;
    
    function FeeCalculation() internal {

    }

    // ------------------------------------------------------------------------
    // Calculate the fee tokens for transferring.
    // ------------------------------------------------------------------------
    function calculateTransferFee(uint tokens) internal pure returns (uint) {
        uint calFee = 0;
        if (tokens > 0 && tokens <= 1000)
            calFee = 1;
        else if (tokens > 1000 && tokens <= 5000)
            calFee = tokens.mul(1).div(1000);
        else if (tokens > 5000 && tokens <= 10000)
            calFee = tokens.mul(2).div(1000);
        else if (tokens > 10000)
            calFee = 30;
        return calFee;
    }
}
function calculateTransferFee(uint tokens) internal pure returns (uint) {
    uint calFee = 0;
    if (tokens > 0 && tokens <= 1000)
        calFee = 1;
    else if (tokens > 1000 && tokens <= 5000)
        calFee = tokens.mul(1).div(1000);
    else if (tokens > 5000 && tokens <= 10000)
        calFee = tokens.mul(2).div(1000);
    else if (tokens > 10000)
        calFee = 30;
    return calFee;
}

// ------------------------------------------------------------------------
// Calculate the fee tokens for transferring.
// ------------------------------------------------------------------------