#!/bin/bash printf -v date '%(%Y-%m-%d)T\n' -1 echo $(( ($(date -d $1 +%s) - $(date -d $date +%s)) / 86400 )) days Above is a bash script to output the number of days between today and some future date. Copy it into a file, e.g., diffdate.sh, into a directory, e.g., ~/bin/scripts. Then, enter the directory you … Continue reading bash: Number of Days Between Today and Some Future Date
Category: life
Basic Options Calculator
"Our Basic Options Calculator...provides fair values and Greeks of any option using our volatility data and previous trading day prices. You may customize all the input parameters (option style, price of the underlying instrument, strike, expiration, implied volatility, interest rate and dividends data) or enter a stock or options symbol and the database will populate … Continue reading Basic Options Calculator
