Skip to content

Instantly share code, notes, and snippets.

@veretennikovalexey
Last active June 26, 2022 07:01
Show Gist options
  • Save veretennikovalexey/d2e51ed1dd78d86947c9bd91185d2ab6 to your computer and use it in GitHub Desktop.
Save veretennikovalexey/d2e51ed1dd78d86947c9bd91185d2ab6 to your computer and use it in GitHub Desktop.
Untitled0.ipynb
Display the source blob
Display the rendered blob
Raw
{
"nbformat": 4,
"nbformat_minor": 0,
"metadata": {
"colab": {
"name": "Untitled0.ipynb",
"provenance": [],
"authorship_tag": "ABX9TyMWTe0TYJGIZBLkZzapAOhg",
"include_colab_link": true
},
"kernelspec": {
"name": "python3",
"display_name": "Python 3"
},
"language_info": {
"name": "python"
}
},
"cells": [
{
"cell_type": "markdown",
"metadata": {
"id": "view-in-github",
"colab_type": "text"
},
"source": [
"<a href=\"https://colab.research.google.com/gist/veretennikovalexey/d2e51ed1dd78d86947c9bd91185d2ab6/untitled0.ipynb\" target=\"_parent\"><img src=\"https://colab.research.google.com/assets/colab-badge.svg\" alt=\"Open In Colab\"/></a>"
]
},
{
"cell_type": "markdown",
"source": [
"25 июня 2022 года\n",
"\n",
"Сняли офис на 2 года без возможности выкупа\n",
"\n",
"За аренду мы платим 72000 без НДС каждый месяц\n",
"\n",
"Необходимо расчитать **приведённую стоимость**\n",
"\n",
"Это делается так: мы могли бы получить в банке 72000 * 2 * 12 =\n",
"\n",
"\n",
"\n"
],
"metadata": {
"id": "O22_LaWSNak-"
}
},
{
"cell_type": "code",
"source": [
"72000 * 2 * 12"
],
"metadata": {
"colab": {
"base_uri": "https://localhost:8080/"
},
"id": "XiAA9sjuO54S",
"outputId": "facba522-3c12-418f-905a-d17a300b6545"
},
"execution_count": null,
"outputs": [
{
"output_type": "execute_result",
"data": {
"text/plain": [
"1728000"
]
},
"metadata": {},
"execution_count": 2
}
]
},
{
"cell_type": "markdown",
"source": [
"72 000 * 2 * 12 = 1 728 000 рублей на 2 года\n",
"\n",
"Предположим, что банк возмёт с нас процент, за пользование кредитом\n",
"\n",
"Скажем, 12% годовых\n",
"\n",
"Теперь нам надо посчитать ставку дисконтирования\n",
"\n",
"Она рассчитывается вот по такой формуле\n",
"\n",
"https://ru.stackoverflow.com/questions/1423744/Объясните-как-из-12-годовых-получается-ставка-дисконтирования-0-9489\n",
"\n",
"или\n",
"\n",
"( ( 1 + годовая ставка / 100 ) ^ 1/12 – 1 ) × 100"
],
"metadata": {
"id": "TvnRAjYLNcS0"
}
},
{
"cell_type": "code",
"source": [
"( ( 1 + 12 / 100 ) ** ( 1 / 12 ) - 1 ) * 100"
],
"metadata": {
"colab": {
"base_uri": "https://localhost:8080/"
},
"id": "3tLQ4_YuP7je",
"outputId": "54c50a62-5bde-4426-c642-3223963f849b"
},
"execution_count": null,
"outputs": [
{
"output_type": "execute_result",
"data": {
"text/plain": [
"0.9488792934583046"
]
},
"metadata": {},
"execution_count": 6
}
]
},
{
"cell_type": "markdown",
"source": [
"Округляем до 0.9489\n",
"\n",
"Итак, ставка дисконтирования равна 0.9489%\n",
"\n",
"Для расчёта **приведённой стоимости** дополнительно потребуется найти коэффициент дисконтирования\n",
"\n",
"Возьмем 9 знаков после запятой, чтобы совпало вот с этой статьёй\n",
"\n",
"https://www.buhsoft.ru/article/4089-fsbu-25-buhgalterskiy-uchet-arendy-s-2022-goda\n",
"\n",
"Формула для расчёта такая 1 : ( 1 + **ставка дисконтирования** : 100 )"
],
"metadata": {
"id": "wnMcfeTZQTQ-"
}
},
{
"cell_type": "code",
"source": [
"1 / ( 1 + 0.9489 / 100 )"
],
"metadata": {
"colab": {
"base_uri": "https://localhost:8080/"
},
"id": "AoF5CosaR59R",
"outputId": "41483626-ba15-433f-fdbc-48d9c53f0491"
},
"execution_count": null,
"outputs": [
{
"output_type": "execute_result",
"data": {
"text/plain": [
"0.9906001947519982"
]
},
"metadata": {},
"execution_count": 8
}
]
},
{
"cell_type": "markdown",
"source": [
"**Коэффициент дисконтирования** равен 0.990600195\n",
"\n",
"Теперь месячную арендную плату умножаем на коэффициент дисконтирования"
],
"metadata": {
"id": "T4xxWTP9SLAG"
}
},
{
"cell_type": "code",
"source": [
"72000 * 0.990600195\n"
],
"metadata": {
"colab": {
"base_uri": "https://localhost:8080/"
},
"id": "Hl21KEOET9XK",
"outputId": "62023e08-94c2-40be-a2c5-e35a87fd3f5a"
},
"execution_count": null,
"outputs": [
{
"output_type": "execute_result",
"data": {
"text/plain": [
"71323.21403999999"
]
},
"metadata": {},
"execution_count": 9
}
]
},
{
"cell_type": "markdown",
"source": [
"Это будет наша **приведённая стоимость** за первый месяц аренды\n",
"\n",
"71323.21 рублей\n",
"\n",
"Далее эту цифру ещё раз умножаем на коэффициент"
],
"metadata": {
"id": "Qi2tGBV2UKEp"
}
},
{
"cell_type": "code",
"source": [
"71323.21 * 0.990600195"
],
"metadata": {
"colab": {
"base_uri": "https://localhost:8080/"
},
"id": "_IBa0yw7Ud1o",
"outputId": "6e6fa111-b494-4dd5-a2ed-b2974ab329c2"
},
"execution_count": null,
"outputs": [
{
"output_type": "execute_result",
"data": {
"text/plain": [
"70652.78573402595"
]
},
"metadata": {},
"execution_count": 10
}
]
},
{
"cell_type": "markdown",
"source": [
"Это **приведённая стоимость** за второй месяц аренды или 70652 рублей 79 копеек"
],
"metadata": {
"id": "tTVKEHTAUiQ4"
}
},
{
"cell_type": "code",
"source": [
"from google.colab import files\n",
"uploaded = files.upload()"
],
"metadata": {
"colab": {
"resources": {
"http://localhost:8080/nbextensions/google.colab/files.js": {
"data": "Ly8gQ29weXJpZ2h0IDIwMTcgR29vZ2xlIExMQwovLwovLyBMaWNlbnNlZCB1bmRlciB0aGUgQXBhY2hlIExpY2Vuc2UsIFZlcnNpb24gMi4wICh0aGUgIkxpY2Vuc2UiKTsKLy8geW91IG1heSBub3QgdXNlIHRoaXMgZmlsZSBleGNlcHQgaW4gY29tcGxpYW5jZSB3aXRoIHRoZSBMaWNlbnNlLgovLyBZb3UgbWF5IG9idGFpbiBhIGNvcHkgb2YgdGhlIExpY2Vuc2UgYXQKLy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2xlIHx8IHt9OwpzY29wZS5nb29nbGUuY29sYWIgPSBzY29wZS5nb29nbGUuY29sYWIgfHwge307CnNjb3BlLmdvb2dsZS5jb2xhYi5fZmlsZXMgPSB7CiAgX3VwbG9hZEZpbGVzLAogIF91cGxvYWRGaWxlc0NvbnRpbnVlLAp9Owp9KShzZWxmKTsK",
"ok": true,
"headers": [
[
"content-type",
"application/javascript"
]
],
"status": 200,
"status_text": ""
}
},
"base_uri": "https://localhost:8080/",
"height": 74
},
"id": "BXqa4HYiXilQ",
"outputId": "7cc56b03-7c20-4461-9819-70a880a999dc"
},
"execution_count": null,
"outputs": [
{
"output_type": "display_data",
"data": {
"text/plain": [
"<IPython.core.display.HTML object>"
],
"text/html": [
"\n",
" <input type=\"file\" id=\"files-ff5dc1c9-d3fb-4d80-96fd-f56df75e57d3\" name=\"files[]\" multiple disabled\n",
" style=\"border:none\" />\n",
" <output id=\"result-ff5dc1c9-d3fb-4d80-96fd-f56df75e57d3\">\n",
" Upload widget is only available when the cell has been executed in the\n",
" current browser session. Please rerun this cell to enable.\n",
" </output>\n",
" <script src=\"/nbextensions/google.colab/files.js\"></script> "
]
},
"metadata": {}
},
{
"output_type": "stream",
"name": "stdout",
"text": [
"Saving Срок аренды.xlsx to Срок аренды.xlsx\n"
]
}
]
},
{
"cell_type": "code",
"source": [
"import pandas\n",
"excel = pandas.read_excel( open( 'Срок аренды.xlsx', 'rb' ) )"
],
"metadata": {
"id": "bBmeB9lTYepG"
},
"execution_count": null,
"outputs": []
},
{
"cell_type": "code",
"source": [
"excel.head( 30 )"
],
"metadata": {
"colab": {
"base_uri": "https://localhost:8080/",
"height": 833
},
"id": "pY6qb4O9Y9NT",
"outputId": "06d105e7-af5e-42c8-e035-2e8d574c843c"
},
"execution_count": null,
"outputs": [
{
"output_type": "execute_result",
"data": {
"text/plain": [
" 1.00000 72000.00000 0.99060 \\\n",
"0 2 71323.21404 0.9906 \n",
"1 3 70652.789736 0.9906 \n",
"2 4 69988.66729 0.9906 \n",
"3 5 69330.787465 0.9906 \n",
"4 6 68679.091582 0.9906 \n",
"5 7 68033.521514 0.9906 \n",
"6 8 67394.019678 0.9906 \n",
"7 9 66760.529035 0.9906 \n",
"8 10 66132.993081 0.9906 \n",
"9 11 65511.355841 0.9906 \n",
"10 12 64895.561871 0.9906 \n",
"11 13 64285.556244 0.9906 \n",
"12 14 63681.284551 0.9906 \n",
"13 15 63082.692894 0.9906 \n",
"14 16 62489.727882 0.9906 \n",
"15 17 61902.336626 0.9906 \n",
"16 18 61320.466732 0.9906 \n",
"17 19 60744.066303 0.9906 \n",
"18 20 60173.083924 0.9906 \n",
"19 21 59607.468669 0.9906 \n",
"20 22 59047.170087 0.9906 \n",
"21 23 58492.138203 0.9906 \n",
"22 24 57942.32351 0.9906 \n",
"23 NaN NaN NaN \n",
"24 Срок аренды Арендный платёж Коэффициент дисконтирования \n",
"\n",
" 71323.21404 \n",
"0 70652.789736 \n",
"1 69988.66729 \n",
"2 69330.787465 \n",
"3 68679.091582 \n",
"4 68033.521514 \n",
"5 67394.019678 \n",
"6 66760.529035 \n",
"7 66132.993081 \n",
"8 65511.355841 \n",
"9 64895.561871 \n",
"10 64285.556244 \n",
"11 63681.284551 \n",
"12 63082.692894 \n",
"13 62489.727882 \n",
"14 61902.336626 \n",
"15 61320.466732 \n",
"16 60744.066303 \n",
"17 60173.083924 \n",
"18 59607.468669 \n",
"19 59047.170087 \n",
"20 58492.138203 \n",
"21 57942.32351 \n",
"22 57397.676967 \n",
"23 1538868.523728 \n",
"24 Приведённая стоимость, рублей "
],
"text/html": [
"\n",
" <div id=\"df-5e4b890d-69e5-4d59-9db9-5f91e9e68283\">\n",
" <div class=\"colab-df-container\">\n",
" <div>\n",
"<style scoped>\n",
" .dataframe tbody tr th:only-of-type {\n",
" vertical-align: middle;\n",
" }\n",
"\n",
" .dataframe tbody tr th {\n",
" vertical-align: top;\n",
" }\n",
"\n",
" .dataframe thead th {\n",
" text-align: right;\n",
" }\n",
"</style>\n",
"<table border=\"1\" class=\"dataframe\">\n",
" <thead>\n",
" <tr style=\"text-align: right;\">\n",
" <th></th>\n",
" <th>1.00000</th>\n",
" <th>72000.00000</th>\n",
" <th>0.99060</th>\n",
" <th>71323.21404</th>\n",
" </tr>\n",
" </thead>\n",
" <tbody>\n",
" <tr>\n",
" <th>0</th>\n",
" <td>2</td>\n",
" <td>71323.21404</td>\n",
" <td>0.9906</td>\n",
" <td>70652.789736</td>\n",
" </tr>\n",
" <tr>\n",
" <th>1</th>\n",
" <td>3</td>\n",
" <td>70652.789736</td>\n",
" <td>0.9906</td>\n",
" <td>69988.66729</td>\n",
" </tr>\n",
" <tr>\n",
" <th>2</th>\n",
" <td>4</td>\n",
" <td>69988.66729</td>\n",
" <td>0.9906</td>\n",
" <td>69330.787465</td>\n",
" </tr>\n",
" <tr>\n",
" <th>3</th>\n",
" <td>5</td>\n",
" <td>69330.787465</td>\n",
" <td>0.9906</td>\n",
" <td>68679.091582</td>\n",
" </tr>\n",
" <tr>\n",
" <th>4</th>\n",
" <td>6</td>\n",
" <td>68679.091582</td>\n",
" <td>0.9906</td>\n",
" <td>68033.521514</td>\n",
" </tr>\n",
" <tr>\n",
" <th>5</th>\n",
" <td>7</td>\n",
" <td>68033.521514</td>\n",
" <td>0.9906</td>\n",
" <td>67394.019678</td>\n",
" </tr>\n",
" <tr>\n",
" <th>6</th>\n",
" <td>8</td>\n",
" <td>67394.019678</td>\n",
" <td>0.9906</td>\n",
" <td>66760.529035</td>\n",
" </tr>\n",
" <tr>\n",
" <th>7</th>\n",
" <td>9</td>\n",
" <td>66760.529035</td>\n",
" <td>0.9906</td>\n",
" <td>66132.993081</td>\n",
" </tr>\n",
" <tr>\n",
" <th>8</th>\n",
" <td>10</td>\n",
" <td>66132.993081</td>\n",
" <td>0.9906</td>\n",
" <td>65511.355841</td>\n",
" </tr>\n",
" <tr>\n",
" <th>9</th>\n",
" <td>11</td>\n",
" <td>65511.355841</td>\n",
" <td>0.9906</td>\n",
" <td>64895.561871</td>\n",
" </tr>\n",
" <tr>\n",
" <th>10</th>\n",
" <td>12</td>\n",
" <td>64895.561871</td>\n",
" <td>0.9906</td>\n",
" <td>64285.556244</td>\n",
" </tr>\n",
" <tr>\n",
" <th>11</th>\n",
" <td>13</td>\n",
" <td>64285.556244</td>\n",
" <td>0.9906</td>\n",
" <td>63681.284551</td>\n",
" </tr>\n",
" <tr>\n",
" <th>12</th>\n",
" <td>14</td>\n",
" <td>63681.284551</td>\n",
" <td>0.9906</td>\n",
" <td>63082.692894</td>\n",
" </tr>\n",
" <tr>\n",
" <th>13</th>\n",
" <td>15</td>\n",
" <td>63082.692894</td>\n",
" <td>0.9906</td>\n",
" <td>62489.727882</td>\n",
" </tr>\n",
" <tr>\n",
" <th>14</th>\n",
" <td>16</td>\n",
" <td>62489.727882</td>\n",
" <td>0.9906</td>\n",
" <td>61902.336626</td>\n",
" </tr>\n",
" <tr>\n",
" <th>15</th>\n",
" <td>17</td>\n",
" <td>61902.336626</td>\n",
" <td>0.9906</td>\n",
" <td>61320.466732</td>\n",
" </tr>\n",
" <tr>\n",
" <th>16</th>\n",
" <td>18</td>\n",
" <td>61320.466732</td>\n",
" <td>0.9906</td>\n",
" <td>60744.066303</td>\n",
" </tr>\n",
" <tr>\n",
" <th>17</th>\n",
" <td>19</td>\n",
" <td>60744.066303</td>\n",
" <td>0.9906</td>\n",
" <td>60173.083924</td>\n",
" </tr>\n",
" <tr>\n",
" <th>18</th>\n",
" <td>20</td>\n",
" <td>60173.083924</td>\n",
" <td>0.9906</td>\n",
" <td>59607.468669</td>\n",
" </tr>\n",
" <tr>\n",
" <th>19</th>\n",
" <td>21</td>\n",
" <td>59607.468669</td>\n",
" <td>0.9906</td>\n",
" <td>59047.170087</td>\n",
" </tr>\n",
" <tr>\n",
" <th>20</th>\n",
" <td>22</td>\n",
" <td>59047.170087</td>\n",
" <td>0.9906</td>\n",
" <td>58492.138203</td>\n",
" </tr>\n",
" <tr>\n",
" <th>21</th>\n",
" <td>23</td>\n",
" <td>58492.138203</td>\n",
" <td>0.9906</td>\n",
" <td>57942.32351</td>\n",
" </tr>\n",
" <tr>\n",
" <th>22</th>\n",
" <td>24</td>\n",
" <td>57942.32351</td>\n",
" <td>0.9906</td>\n",
" <td>57397.676967</td>\n",
" </tr>\n",
" <tr>\n",
" <th>23</th>\n",
" <td>NaN</td>\n",
" <td>NaN</td>\n",
" <td>NaN</td>\n",
" <td>1538868.523728</td>\n",
" </tr>\n",
" <tr>\n",
" <th>24</th>\n",
" <td>Срок аренды</td>\n",
" <td>Арендный платёж</td>\n",
" <td>Коэффициент дисконтирования</td>\n",
" <td>Приведённая стоимость, рублей</td>\n",
" </tr>\n",
" </tbody>\n",
"</table>\n",
"</div>\n",
" <button class=\"colab-df-convert\" onclick=\"convertToInteractive('df-5e4b890d-69e5-4d59-9db9-5f91e9e68283')\"\n",
" title=\"Convert this dataframe to an interactive table.\"\n",
" style=\"display:none;\">\n",
" \n",
" <svg xmlns=\"http://www.w3.org/2000/svg\" height=\"24px\"viewBox=\"0 0 24 24\"\n",
" width=\"24px\">\n",
" <path d=\"M0 0h24v24H0V0z\" fill=\"none\"/>\n",
" <path d=\"M18.56 5.44l.94 2.06.94-2.06 2.06-.94-2.06-.94-.94-2.06-.94 2.06-2.06.94zm-11 1L8.5 8.5l.94-2.06 2.06-.94-2.06-.94L8.5 2.5l-.94 2.06-2.06.94zm10 10l.94 2.06.94-2.06 2.06-.94-2.06-.94-.94-2.06-.94 2.06-2.06.94z\"/><path d=\"M17.41 7.96l-1.37-1.37c-.4-.4-.92-.59-1.43-.59-.52 0-1.04.2-1.43.59L10.3 9.45l-7.72 7.72c-.78.78-.78 2.05 0 2.83L4 21.41c.39.39.9.59 1.41.59.51 0 1.02-.2 1.41-.59l7.78-7.78 2.81-2.81c.8-.78.8-2.07 0-2.86zM5.41 20L4 18.59l7.72-7.72 1.47 1.35L5.41 20z\"/>\n",
" </svg>\n",
" </button>\n",
" \n",
" <style>\n",
" .colab-df-container {\n",
" display:flex;\n",
" flex-wrap:wrap;\n",
" gap: 12px;\n",
" }\n",
"\n",
" .colab-df-convert {\n",
" background-color: #E8F0FE;\n",
" border: none;\n",
" border-radius: 50%;\n",
" cursor: pointer;\n",
" display: none;\n",
" fill: #1967D2;\n",
" height: 32px;\n",
" padding: 0 0 0 0;\n",
" width: 32px;\n",
" }\n",
"\n",
" .colab-df-convert:hover {\n",
" background-color: #E2EBFA;\n",
" box-shadow: 0px 1px 2px rgba(60, 64, 67, 0.3), 0px 1px 3px 1px rgba(60, 64, 67, 0.15);\n",
" fill: #174EA6;\n",
" }\n",
"\n",
" [theme=dark] .colab-df-convert {\n",
" background-color: #3B4455;\n",
" fill: #D2E3FC;\n",
" }\n",
"\n",
" [theme=dark] .colab-df-convert:hover {\n",
" background-color: #434B5C;\n",
" box-shadow: 0px 1px 3px 1px rgba(0, 0, 0, 0.15);\n",
" filter: drop-shadow(0px 1px 2px rgba(0, 0, 0, 0.3));\n",
" fill: #FFFFFF;\n",
" }\n",
" </style>\n",
"\n",
" <script>\n",
" const buttonEl =\n",
" document.querySelector('#df-5e4b890d-69e5-4d59-9db9-5f91e9e68283 button.colab-df-convert');\n",
" buttonEl.style.display =\n",
" google.colab.kernel.accessAllowed ? 'block' : 'none';\n",
"\n",
" async function convertToInteractive(key) {\n",
" const element = document.querySelector('#df-5e4b890d-69e5-4d59-9db9-5f91e9e68283');\n",
" const dataTable =\n",
" await google.colab.kernel.invokeFunction('convertToInteractive',\n",
" [key], {});\n",
" if (!dataTable) return;\n",
"\n",
" const docLinkHtml = 'Like what you see? Visit the ' +\n",
" '<a target=\"_blank\" href=https://colab.research.google.com/notebooks/data_table.ipynb>data table notebook</a>'\n",
" + ' to learn more about interactive tables.';\n",
" element.innerHTML = '';\n",
" dataTable['output_type'] = 'display_data';\n",
" await google.colab.output.renderOutput(dataTable, element);\n",
" const docLink = document.createElement('div');\n",
" docLink.innerHTML = docLinkHtml;\n",
" element.appendChild(docLink);\n",
" }\n",
" </script>\n",
" </div>\n",
" </div>\n",
" "
]
},
"metadata": {},
"execution_count": 14
}
]
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment