Thanks for the comments guys and yes it should be word to get the 1440 minutes in a day. The code for the conversion from BDC came from a sample code written by Melenie, which I've used in other projects so couldn't see any reason to change it.