How to calculate slots in a day in a java?
<p>I have a three fields </p>

<ol>
<li>Day's  start time ( say 8:00:00) (this is java.util.date)</li>
<li>Days end time (say 22:00:00) (java.util.date)</li>
<li><p>No of slots to divide (say 4)</p>

<p>then time will divide as 11:00:00, 14:00:00, 17:00:00, 20:00:00</p></li>
</ol>

<p>So it will calculate the times according to no of slots to divide. If you have any algorithms to calculate it java. And the accuracy will be nearly 15 minutes round figure.
 Please suggest me. Thx in advance</p>
