My Math Forum  

Go Back   My Math Forum > Science Forums > Economics

Economics Economics Forum - Financial Mathematics, Econometrics, Operations Research, Mathematical Finance, Computational Finance

LinkBack Thread Tools Display Modes
November 11th, 2014, 08:07 AM   #1
Joined: Nov 2014
From: brasil

Posts: 1
Thanks: 0

Help writting financial distribution formula

I need help writing a function to calculate the financial contribution of a product subscription into a given month. Not so straight forward however, since it has to consider months with fixed length (30 days) while the subscription is of arbitrary duration.

i.e. Having $m$ as a month of $L(m)$ days and $p$ is a product which has a price $V(p)$, and has been active for $N(m,p)$ days for that month, I am looking for the function $D(m,p)$ which has constant value for every $m$. E.g.:
  1. For a 30\$ product "SportsChannel", valid from 20/02/2014 to 19/03/2014, $D(FEB, SportsChannel) = x$$
  2. For the same 30\$ product "SportsChannel", though valid from 20/03/2014 to 19/04/2014, I should also get $D(MAR, SportsChannel) = x$$

I guess the trick is in making $N(m,p)$ constant, as the number of "real" days ($L(m)$) in each month varies (28 in FEB vs 31 in MAR). Provided that, than I could plug it into something like $D(m,p)=V(p)*\frac{N(m,p)}{\sum_{i=0}^{m_{max}}N(m _i,p)}$

I don't have a lot of practice trying to model my problems in math terms, so sorry if misused the syntax and feel free to bluntly correct me Anyway, thanks for the help.

p.s.: is it possible to simplify $\frac{N(m,p)}{\sum_{i=0}^{m_{max}}N(m_i,p)}$?
flpgdt is offline  

  My Math Forum > Science Forums > Economics

distribution, financial, formula, writting

Thread Tools
Display Modes

Similar Threads
Thread Thread Starter Forum Replies Last Post
Formula for a Normal Distribution - Help MikeH Probability and Statistics 1 April 16th, 2014 01:15 PM
Formula for a Normal Distribution - Help MikeH Advanced Statistics 0 April 16th, 2014 11:50 AM
The Prime distribution and its "formula" MyNameIsVu Number Theory 13 April 12th, 2009 09:40 PM
[newbie] financial formula jon80 Algebra 0 April 11th, 2009 10:37 AM
The Prime distribution and its "formula" MyNameIsVu Computer Science 2 December 31st, 1969 04:00 PM

Copyright © 2019 My Math Forum. All rights reserved.