My Math Forum Help writting financial distribution formula

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

 November 11th, 2014, 07:07 AM #1 Newbie   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.: For a 30\$product "SportsChannel", valid from 20/02/2014 to 19/03/2014,$D(FEB, SportsChannel) = x$$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)}$?

 Tags distribution, financial, formula, writting

 Thread Tools Display Modes Linear Mode

 Similar Threads Thread Thread Starter Forum Replies Last Post MikeH Probability and Statistics 1 April 16th, 2014 12:15 PM MikeH Advanced Statistics 0 April 16th, 2014 10:50 AM MyNameIsVu Number Theory 13 April 12th, 2009 08:40 PM jon80 Algebra 0 April 11th, 2009 09:37 AM MyNameIsVu Computer Science 2 December 31st, 1969 04:00 PM

 Contact - Home - Forums - Cryptocurrency Forum - Top