# Demo entry 5862210

g

Submitted by anonymous on Jul 25, 2016 at 22:51
Language: Python 3. Code size: 523 Bytes.

```# Get the desired future value.
future_value = float(input('Enter the desired future value: '))

# Get the annual interest rate.
rate = float(input('Enter the annual interest rate: '))

# Get the number of years that the money will appreciate.
years = int(input('Enter the number of years the money will grow: '))

# Calculate the amount needed to deposit.
present_value = future_value / (1.0 + rate)**years

# Display the amount needed to deposit.
print('You will need to deposit this amount:', present_value)
```

This snippet took 0.00 seconds to highlight.

Back to the Entry List or Home.
{"ft_lang_label":"__label__en","ft_lang_prob":0.760833,"math_prob":0.9037115,"size":694,"snap":"2019-35-2019-39","text_gpt3_token_len":172,"char_repetition_ratio":0.120289855,"word_repetition_ratio":0.018181818,"special_character_ratio":0.28818443,"punctuation_ratio":0.14814815,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.9595916,"pos_list":[0],"im_url_duplicate_count":[null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2019-08-21T12:44:32Z\",\"WARC-Record-ID\":\"<urn:uuid:037f6b92-10ae-4e76-8682-d8c28e100aa8>\",\"Content-Length\":\"8187\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:1bdf92e6-9a9b-46d7-9952-8bd144bd2ee0>\",\"WARC-Concurrent-To\":\"<urn:uuid:121d7e10-342a-4c10-91b6-bf116769aefb>\",\"WARC-IP-Address\":\"148.251.50.164\",\"WARC-Target-URI\":\"http://pygments.org/demo/5862210/\",\"WARC-Payload-Digest\":\"sha1:4ZEP2Q2MM2SH3HBE2AGIZHUEEHMAYFO3\",\"WARC-Block-Digest\":\"sha1:YYQ3IRSXB3UUXY4WZ44HHQLVD64JRVVN\",\"WARC-Identified-Payload-Type\":\"application/xhtml+xml\",\"warc_filename\":\"/cc_download/warc_2019/CC-MAIN-2019-35/CC-MAIN-2019-35_segments_1566027315936.22_warc_CC-MAIN-20190821110541-20190821132541-00008.warc.gz\"}"}