Find Jobs
Hire Freelancers

Drupal 7 - time and date field to integer and a view summary

€30-250 EUR

Completed
Posted over 3 years ago

€30-250 EUR

Paid on delivery
1) I need code in PHP for drupal computed field ([login to view URL]) that would calculate difference in days between two dates e.g. : date 1: 1st may 2019 date 2: 20 July 2020 date 2 - date 1 = circa 365 + 80 days = 445 days and provide it as an integer value as a number of years, that I could further use for extra calculations. 445 days (calculated difference) / 365 (average year) = 1.219 that number (difference in days as a number of years) should be the output of the code. 2) some values would be provided as char or string. The code should account for it. A draft version of the code: $value1_energy1 = field_get_items($entity_type, $entity, 'field_energy1'); $value2_energy2 = field_get_items($entity_type, $entity, 'field_energy2'); if ($value2_energy2[0]['value'] > '0') { $entity_field[0]['value'] = $value2_energy2[0]['value']*0.000351 + $value1_energy1 [0]['value']*0.000812; }else{ $entity_field[0]['value'] = $value1_energy1[0]['value']*0.000812; } This is just a basic calculation and: a) there is no date field included b) valued1 and value2 could be provided as a string (and have a space or a comma instead of a dot). 3) those calculated values shoud be summed up in a view There is a view with a list of nodes, and at the bottom of the view we need to provide a sum of those calculated values example of the view with fomulas: [login to view URL]
Project ID: 28380611

About the project

8 proposals
Remote project
Active 3 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
I have the following experience with Drupal and PHP Experience developing web solutions in Drupal and PHP implementations in a LAMP environment. Advanced site-building experience including deep familiarity with Drupal modules such as CTools, Views, and Panels. Experience with AJAX, JSON, XML, and RESTful APIs web services, querying third party demand APIs in real time Ability to architect enterprise Drupal solutions including data, display, and information architecture. Experience building responsive websites using Drupal CMS, HTML/HTML5, CSS/CSS3, and JavaScript/jQuery High proficiency in PHP and the ability to manipulate, troubleshoot, and write custom PHP software. Advanced experience with MySQL, SQL query optimization, SQL security SQL design, PHP with SQL queries Experience with the following: HTML5, CSS3, JavaScript and JSON endpoint processing Thank you for your time and attention. Looking forward to hearing from you. regards
€190 EUR in 7 days
5.0 (1 review)
4.4
4.4
8 freelancers are bidding on average €192 EUR for this job
User Avatar
Hi, Greetings! ✅checked your project details: Drupal 7 - time and date field to integer and a view summary ✅Completed Time: In project deadline We have worked on 640 + Projects. I have 6 + years of the experience in same kind of projects. If you are looking for a true Freelancer, I am the Right person for you. I am available almost 24-7 and am very responsive. I feel proud that I am a trusted Freelancer who pleases almost every single client. You can rest assure, your work will be delivered well in advance of others, with passion and accuracy. I guarantee you instant communication & responses when you need me. Why choose me? I think every client is the reason for my success. I only take projects which I am sure I can do quickly. My Portfolio Items: https://www.freelancer.com/u/schoudhary1553 I would really like to work with you on this project. If interested, Kindly contact me via chat for further details and discussion.. Thank you Sandeep Digital screencast
€220 EUR in 4 days
4.9 (74 reviews)
6.6
6.6
User Avatar
Hi there, I have read your requirements i can give you code in PHP for Durpal computed field and complete your project as all the requirement written in the bid and submit it to you in your given deadline after chat in private i can start working on your project asap. I'm able to make your website I do my client always satisfy because I have rich experience in HTML/CSS, Bootstrap, J Query, JavaScript, PHP, Laravel, Codeigniter, WordPress,Website Design,Web Scrapping, Shopify development. I hope to hear from you regarding my proposal so we can collaborate with each as soon as possible. Message me so we can discuss about the further details. Thank you.
€140 EUR in 7 days
3.0 (8 reviews)
3.9
3.9

About the client

Flag of POLAND
Poland
0.0
0
Member since Oct 21, 2017

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.