سوال: محاسبه هزینه برای هر دقیقه و هر ساعت .. !!

ساخت وبلاگ

سلام
من دیروز تاپیک ایجاد کردم که متاسفانه جوابی نگرفتم. گفتم شاید بد عنوان کردم.
من دوتا ساعت شرو و پایان سیستم رو میگیرم. [/COLOR]
با زدن دکمه اختلاف بینشون محاسبه میشه :

[COLOR=teal !important];(DateTime [/COLOR][COLOR=#002D7A !important]start[/COLOR][COLOR=#006FE0 !important][/COLOR][COLOR=#006FE0 !important]=[/COLOR][COLOR=#006FE0 !important][/COLOR][COLOR=#002D7A !important]DateTime[/COLOR][COLOR=#333333 !important].[/COLOR][COLOR=teal !important]Parse[/COLOR][COLOR=#333333 !important]([/COLOR][COLOR=#002D7A !important]textBox2[/COLOR][COLOR=#333333 !important].[/COLOR][COLOR=#002D7A !important]Text
[/COLOR][COLOR=teal !important];(DateTime [COLOR=#002D7A !important]end[/COLOR][COLOR=#006FE0 !important][/COLOR][COLOR=#006FE0 !important]=[/COLOR][COLOR=#006FE0 !important][/COLOR][COLOR=#002D7A !important]DateTime[/COLOR][COLOR=#333333 !important].[/COLOR][COLOR=teal !important]Parse[/COLOR][COLOR=#333333 !important]([/COLOR][COLOR=#002D7A !important]textBox3[/COLOR][COLOR=#333333 !important].[/COLOR][COLOR=#002D7A !important]Text[/COLOR][/COLOR]
[COLOR=#006FE0 !important] ;[COLOR=teal !important]TimeSpan [/COLOR][COLOR=#002D7A !important]timedif[/COLOR][COLOR=#006FE0 !important][/COLOR][COLOR=#006FE0 !important]=[/COLOR][COLOR=#006FE0 !important][/COLOR][COLOR=#002D7A !important]end[/COLOR][COLOR=#006FE0 !important][/COLOR][COLOR=#006FE0 !important]-[/COLOR][COLOR=#006FE0 !important][/COLOR][COLOR=#002D7A !important]start[/COLOR][/COLOR]
[COLOR=#006FE0 !important] ;[COLOR=#800080 !important]var[/COLOR][COLOR=#006FE0 !important][/COLOR][COLOR=#002D7A !important]a[/COLOR][COLOR=#006FE0 !important][/COLOR][COLOR=#006FE0 !important]=[/COLOR][COLOR=#006FE0 !important][/COLOR][COLOR=#002D7A !important]timedif[/COLOR][/COLOR]
[COLOR=#002D7A !important];("textBox1[COLOR=#333333 !important].[/COLOR][COLOR=#002D7A !important]Text[/COLOR][COLOR=#006FE0 !important][/COLOR][COLOR=#006FE0 !important]=[/COLOR][COLOR=#006FE0 !important][/COLOR][COLOR=#002D7A !important]DateTime[/COLOR][COLOR=#333333 !important].[/COLOR][COLOR=teal !important]Parse[/COLOR][COLOR=#333333 !important]([/COLOR][COLOR=#002D7A !important]a[/COLOR][COLOR=#333333 !important].[/COLOR][COLOR=teal !important]ToString[/COLOR][COLOR=#333333 !important]([/COLOR][COLOR=#333333 !important])[/COLOR][COLOR=#333333 !important])[/COLOR][COLOR=#333333 !important].[/COLOR][COLOR=teal !important]ToString[/COLOR][COLOR=#333333 !important]([/COLOR][COLOR=#DD1144 !important]"HH:mm

[/COLOR]حالا می خوام همزمان که اختلاف ساعت رو میده، اون ساعت و دقیقه و بگیره و به ازای هر دقیقه مثلا 10 دقیقه 100 تومان و هر ساعت 6000 تومان محاسبه کنه.
تشکر از راهنماییتون
[COLOR=#DD1144 !important]

[/COLOR][/COLOR]

برنامه نویس...
ما را در سایت برنامه نویس دنبال می کنید

برچسب : نویسنده : محمد رضا جوادیان programers بازدید : 139 تاريخ : سه شنبه 19 مرداد 1395 ساعت: 13:23