S
S
Sanes2019-08-05 14:25:15
Algorithms
Sanes, 2019-08-05 14:25:15

Recalculation logic in billing?

It is necessary to make a simple billing. There is a difficulty in understanding the write-off of payments.
For example : server crashed, debit periods missed.
Now the manipulation of time is on the service. Write off, change the time.
How to build logic (in 2 words) or where to look / read?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dimonchik, 2019-08-05
@dimonchik2013

it is easier to bind to geo-time
to count hourly + user-friendly
user started using at 20:35 - we start counting from 21:00
the server went to bed at 21:35 - we consider that he went to bed at 21:00, etc.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question