|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Stay one step ahead of the competition. Evaluate and give feedback
on some of the hottest web development tools on the market today.
Make your opinion heard! Click
Here
|
|
#1
|
|||
|
|||
|
How do I calculate how many months are left for my hosting?
Let's say I pay R6 a month for hosting. I pay R6 x 12 months for hosting = R72 Say I paid on the 25/01/2005 that will last me for a year until 25/01/2006. Some were paid on different dates, now for the fun part: I now take look at my spreadsheet and would like to know who's hosting ends on what date? this part has got me stumped Even if this is a stupid question, please shed some light on it for me. Cheers |
|
#2
|
||||
|
||||
|
what language are you using?
__________________
There is no spoon. |
|
#3
|
|||
|
|||
|
PHP and ASP either one.
|
|
#4
|
||||
|
||||
|
What?! - I am totally confused. is this a text file and db file something written on paper.... please clarify what you are doing and what you want to do.
__________________
life is a game.... Have fun ----------------------------- http://www.phpwomen.org strength in unity PHPCommunity IRC #phpc on freenode |
|
#5
|
|||
|
|||
|
Like it says in my post,
I look at my spreadheet "excel" The fact that icandothat asked me the odd question is probably what confused you. I am using a spreadheet, but if you have a different method then please share it with me in order for me to understand this better. Cheers Last edited by student101 : January 23rd, 2008 at 09:52 AM. |
|
#6
|
||||
|
||||
|
How is your spreadsheet formatted? column names and values for instance. Do you have the start dates listed in your spread sheet - or the end dates? need all the pertinent info otherwise it is one big blur.
|
|
#7
|
|||
|
|||
|
Column name:
Hosting fee = R6 Column names: Date | Amount Paid | Months left Row data: Date = 11 September 2007 Amount Paid = R100 Months left = Hosting - Amount paid Hope it makes sense. |
|
#8
|
||||
|
||||
|
what the hell was odd about my question? how do you plan on using PHP in an excel spreadsheet? dingus. furthermore asp is not a language.
regardless of language figure out how much they paid. figure out how much one day costs subtract the day they paid from today to determine how long since they paid multiply that by how much one day of hosting costs subtract that from how much they paid when you get 0 you know they owe you money. |
|
#9
|
||||
|
||||
|
Quote:
LOL - where is the fun in that. |
|
#10
|
|||
|
|||
|
It seems that there is tension on this thread, odd?
It's a simple question, yet miscommunication is a big thing nowadays ![]() Thank you for your help here. It seems that I understand it much better now. Quote:
when I specifically said spreadsheet meaning excel or similar. I am glad Cheers |
|
#11
|
|||
|
|||
|
Quote:
With regards to your helpful answer, I came up with this: Code:
Hosting = R6 Choice of hosting = 3, 6 or 12 months Works out to this: Hosting choice = 12 *(multiply by) Hosting fee = R6 Totals: R72 R72 - (minus) R6 for each month "not day" Totals will run down along the months till it totals 0 (Zero) Now you owe me money :) |
|
#12
|
||||
|
||||
|
Glad I could help.
|
![]() |
| Viewing: Codewalkers Forums > General > General Chat > How do I calculate how many months are left for my hosting? |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|
|
|
|