```\nfunction reflectionFromToken(uint256 tAmount, bool deductTransferFee)\n    public\n    view\n    returns (uint256)\n{\n    require(tAmount <= _tTotal, "Amount must be less than supply");\n\n    (\n        ,\n        uint256 tFee,\n        uint256 tLiquidity,\n        uint256 tWallet,\n        uint256 tDonation\n    ) = _getTValues(tAmount);\n    (uint256 rAmount, uint256 rTransferAmount, ) = _getRValues(\n        tAmount,\n        tFee,\n        tLiquidity,\n        tWallet,\n        tDonation,\n        _getRate()\n    );\n\n    if (!deductTransferFee) {\n        return rAmount;\n    } else {\n        return rTransferAmount;\n    }\n}\n```\n