Calculate the value of a commodity futures.
Function to calculate the value of a commodity futures.
The user inputs are as follows:
Spot: entered in decimals. For e.g. 105.50
Risk free Rate: entered in decimals. For e.g. 5 per cent is entered as 0.05
Maturity: entered in number of years. For e.g. half year is 0.5
Convenience yield: entered in decimals. e.g. 0.02 for 2 per cent.Storage cost(s): entered with comma separation if it is in cash and occuring at multiple times e.g. 2.50, 3.0. If it is in yield terms, it is entered in decimals. e.g. 0.02 for 2 per cent
Storage time(s):entered with comma separation e.g. 0.25,0.50 for 3 months and 6 months
Type of Income: chosen between yield/cash
The value of a commodity futures.
S Subramanian <firstname.lastname@example.org>
John C. Hull, "Options, Futures, and Other Derivatives", 8/E, Prentice Hall, 2012.
Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.