Title: Padding time added incorrectly
Last modified: November 28, 2020

---

# Padding time added incorrectly

 *  Resolved [alanjacobs](https://wordpress.org/support/users/alanjacobs/)
 * (@alanjacobs)
 * [5 years, 6 months ago](https://wordpress.org/support/topic/padding-time-added-incorrectly/)
 * Hi,
    I’ve added a calendar to my page and it displays ok ish. But there is a 
   problem with how padding time is added and availability is calculated.
 * Firstly the padding time should ONLY be added after a slot is booked. So if I
   set 15 minute slots I would expect the Hours available to show in increments 
   of 15 minutes. Only once a booking is made should the padding be added and the
   available hours be updated to account for it. At the moment padding is added 
   to every slot regardless.
    So users books 10:15 for 15 mins and after padding
   the next available slot should be 10:45.
 * Secondly if you book multiple slots then the padding should ONLY be added to 
   the last slot. Currently it adds the padding to every slot. So users can not 
   book contiguous slots without having the padding time added inbetween.
    So users
   books 10:15 and 10:30 ( So 10:15-10:45 ) 15 mins padding is added to make next
   available slot 11:00. But if user books 10:15 and 14:15 then each slot should
   have the padding added and next free times will be 10:45 and 14:45.
 * Hope this makes sense
    Alan
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fpadding-time-added-incorrectly%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 1 replies (of 1 total)

 *  Plugin Author [codepeople](https://wordpress.org/support/users/codepeople/)
 * (@codepeople)
 * [5 years, 6 months ago](https://wordpress.org/support/topic/padding-time-added-incorrectly/#post-13771026)
 * Hi,
 * Uncheck the option “Generate time slots automatically based on service duration”
   to generate the available time-slots without taking in account the padding until
   booked.
 * Regarding to booking multiple slots, the best option is to define services of
   different duration, so the user select the duration first, then the start time(
   time-slot) and that way the padding will be added only once.
 * Thank you for using the plugin!

Viewing 1 replies (of 1 total)

The topic ‘Padding time added incorrectly’ is closed to new replies.

 * ![](https://ps.w.org/appointment-hour-booking/assets/icon-256x256.png?rev=1784135)
 * [Appointment Hour Booking - Booking Calendar](https://wordpress.org/plugins/appointment-hour-booking/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/appointment-hour-booking/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/appointment-hour-booking/)
 * [Active Topics](https://wordpress.org/support/plugin/appointment-hour-booking/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/appointment-hour-booking/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/appointment-hour-booking/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [codepeople](https://wordpress.org/support/users/codepeople/)
 * Last activity: [5 years, 6 months ago](https://wordpress.org/support/topic/padding-time-added-incorrectly/#post-13771026)
 * Status: resolved