Find Jobs
Hire Freelancers

Repair Python Rounding Function

$30-250 USD

Completed
Posted about 7 years ago

$30-250 USD

Paid on delivery
We need this function repaired right away. It is supposed to round up by 'interval', but after putting lots of entries through it it has failed. Function; def round_timedelta(tm: timedelta, interval=15): """ Args: tm: A timedela object. interval: Time in minutes that tm should be rounded up too. Returns: rounded timedelta. Examples: round_timedelta(timedelta(minutes=50), interval=15) -> timedelta(minutes=60) round_timedelta(timedelta(minutes=35), interval=15) -> timedelta(minutes=45) """ idealTimesec = 0 while idealTimesec < [login to view URL]: idealTimesec += interval * 60 if idealTimesec >= 60 * 60: idealTimesec = 3600 return timedelta(seconds=idealTimesec) Results; 1:14:42.397000 1:00:00 0:10:00 0:15:00 0:08:22.733000 0:15:00 1:59:20.710000 1:00:00 0:29:27.386000 0:30:00 2:41:02.303000 1:00:00 0:20:55.467000 0:30:00 0:23:38.659000 0:30:00 0:35:45.424000 0:45:00 0:08:14.702000 0:15:00 4:41:54.615000 1:00:00 0:14:49.513000 0:15:00 0:15:10.171000 0:30:00 0:10:00 0:15:00 0:16:29.947000 0:30:00 0:25:49.030000 0:30:00 0:30:00 0:30:00 0:30:36.203000 0:45:00 0:50:00 1:00:00 0:14:24.843000 0:15:00 0:08:39.873000 0:15:00 0:30:55.832000 0:45:00 9:37:47.889000 1:00:00 0:07:33.599000 0:15:00 0:28:56.031000 0:30:00 2:00:00 1:00:00 0:27:15.651000 0:30:00 0:06:02.940000 0:15:00 0:19:47.352000 0:30:00 1:22:56.176000 1:00:00 0:14:09.403000 0:15:00 0:30:55.020000 0:45:00 0:19:10.440000 0:30:00 0:17:41.720000 0:30:00 5:26:59.837000 1:00:00 1:12:57.152000 1:00:00 0:42:14.792000 0:45:00 0:17:47.767000 0:30:00 0:38:28.454000 0:45:00 0:29:02.171000 0:30:00 0:08:31.365000 0:15:00 0:10:02.545000 0:15:00 1:26:50.650000 1:00:00 0:35:30.959000 0:45:00 1:34:22.183000 1:00:00 0:15:00 0:15:00 0:59:29.039000 1:00:00 2:08:40.425000 1:00:00 - FAIL 2:00:00 1:00:00 - FAIL 0:59:58.155000 1:00:00 0:07:43.327000 0:15:00 0:09:52.542000 0:15:00 0:07:42.106000 0:15:00 0:06:30.142000 0:15:00 0:26:06.584000 0:30:00 0:15:00 0:15:00 0:07:13.310000 0:15:00 0:15:38.250000 0:30:00 0:17:10.503000 0:30:00 2:00:00 1:00:00 - FAIL 0:15:00 0:15:00 0:16:05.004000 0:30:00 0:06:36.140000 0:15:00 0:07:57.308000 0:15:00 0:24:27.119000 0:30:00 0:31:24.182000 0:45:00 0:22:15.706000 0:30:00 0:45:00 0:45:00 0:15:13.735000 0:30:00 0:13:09.550000 0:15:00 0:09:18.176000 0:15:00 0:49:47.135000 1:00:00 0:26:25.981000 0:30:00 0:23:28.459000 0:30:00 1:18:36.469000 1:00:00 - FAIL
Project ID: 13260955

About the project

9 proposals
Remote project
Active 7 yrs ago

Looking to make some money?

Benefits of bidding on Freelancer

Set your budget and timeframe
Get paid for your work
Outline your proposal
It's free to sign up and bid on jobs
Awarded to:
User Avatar
Hi there, python developer for few years here. Please tell me more about what the function does, I mean like what is the output you want, etc. Thx.
$50 USD in 3 days
5.0 (25 reviews)
4.6
4.6
9 freelancers are bidding on average $87 USD for this job
User Avatar
......................................................................................................................................................................................
$155 USD in 0 day
5.0 (39 reviews)
6.4
6.4
User Avatar
Hi, please show how it is fails. Also i see that function written not in optimal way. Its possible to do that wihtout loop. Actually i already made functioan which just use math without loop and ready to test on your failing values. For example for 2:08:40.425000 it gives 2:15:00, for 7200.48s it gives 2:15:00, for 7200s gives 2:00:00
$53 USD in 0 day
5.0 (20 reviews)
4.6
4.6
User Avatar
Greetings sir, i am an expert freelancer for this job and your 100% satisfaction is assured if you allow me to serve. Here is the reason. Why you should pick me? a) I am a very expert and have the same kind of experience of 5 years. b) I work very hard (16+ hours a day and 7 days a week) and also very fast so... it will be done very soon than most of the other providers c) And most important part is my policy: "I will give you (to my client) life time support (as long as you keep relation with me). And fix any bugs/problem without any cost. So, don't ever worry about me” Please sir, leave a reply ASAP, as I am waiting for your kind reply
$155 USD in 2 days
5.0 (10 reviews)
4.5
4.5
User Avatar
Hello. I want to do it for you. A have a good math and python background, so I think we can do it quick if we work together. Send me a message.
$150 USD in 3 days
5.0 (15 reviews)
4.2
4.2
User Avatar
Hello, Can you send me your existing function definition and test cases. Or should I create my own function. Regards, Samiran
$40 USD in 1 day
5.0 (4 reviews)
3.3
3.3
User Avatar
I have a good idea on how to fix this. I have delt with this kind of problem before. My GitHub has a related project that deals with otp for 2fa. I'm definite that I can come up with a solution. It is necessary that we communicate somehow verbally. I'm open to all mediums.
$55 USD in 3 days
0.0 (0 reviews)
0.0
0.0

About the client

Flag of CANADA
Burlington, Canada
5.0
12
Payment method verified
Member since Sep 28, 2013

Client Verification

Thanks! We’ve emailed you a link to claim your free credit.
Something went wrong while sending your email. Please try again.
Registered Users Total Jobs Posted
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Loading preview
Permission granted for Geolocation.
Your login session has expired and you have been logged out. Please log in again.